Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated models and request builders #1414

Merged
merged 2 commits into from
Nov 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ You can install the PHP SDK with Composer by editing your `composer.json` file:
```
{
"require": {
"microsoft/microsoft-graph": "^2.0.0"
"microsoft/microsoft-graph": "^2.1.0"
}
}
```
Expand Down
4 changes: 2 additions & 2 deletions src/Generated/Admin/AdminRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function toGetRequestInformation(?AdminRequestBuilderGetRequestConfigurat
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -129,7 +129,7 @@ public function toPatchRequestInformation(Admin $body, ?AdminRequestBuilderPatch
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Generated/Admin/Edge/EdgeRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function toDeleteRequestInformation(?EdgeRequestBuilderDeleteRequestConfi
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json, application/json");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -119,7 +119,7 @@ public function toGetRequestInformation(?EdgeRequestBuilderGetRequestConfigurati
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -138,7 +138,7 @@ public function toPatchRequestInformation(Edge $body, ?EdgeRequestBuilderPatchRe
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function toDeleteRequestInformation(?InternetExplorerModeRequestBuilderDe
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json, application/json");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -119,7 +119,7 @@ public function toGetRequestInformation(?InternetExplorerModeRequestBuilderGetRe
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -138,7 +138,7 @@ public function toPatchRequestInformation(InternetExplorerMode $body, ?InternetE
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Delete a browserSiteList object. This API is available in the following national cloud deployments.
* Delete a browserSiteList object.
* @param BrowserSiteListItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<void|null>
* @throws Exception
Expand All @@ -71,7 +71,7 @@ public function delete(?BrowserSiteListItemRequestBuilderDeleteRequestConfigurat
}

/**
* Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
* Get a browserSiteList that contains browserSite and browserSharedCookie resources.
* @param BrowserSiteListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<BrowserSiteList|null>
* @throws Exception
Expand All @@ -87,7 +87,7 @@ public function get(?BrowserSiteListItemRequestBuilderGetRequestConfiguration $r
}

/**
* Update the properties of a browserSiteList object. This API is available in the following national cloud deployments.
* Update the properties of a browserSiteList object.
* @param BrowserSiteList $body The request body
* @param BrowserSiteListItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<BrowserSiteList|null>
Expand All @@ -104,7 +104,7 @@ public function patch(BrowserSiteList $body, ?BrowserSiteListItemRequestBuilderP
}

/**
* Delete a browserSiteList object. This API is available in the following national cloud deployments.
* Delete a browserSiteList object.
* @param BrowserSiteListItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -117,12 +117,12 @@ public function toDeleteRequestInformation(?BrowserSiteListItemRequestBuilderDel
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json, application/json");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
* Get a browserSiteList that contains browserSite and browserSharedCookie resources.
* @param BrowserSiteListItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -138,12 +138,12 @@ public function toGetRequestInformation(?BrowserSiteListItemRequestBuilderGetReq
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Update the properties of a browserSiteList object. This API is available in the following national cloud deployments.
* Update the properties of a browserSiteList object.
* @param BrowserSiteList $body The request body
* @param BrowserSiteListItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -157,7 +157,7 @@ public function toPatchRequestInformation(BrowserSiteList $body, ?BrowserSiteLis
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Get a browserSiteList that contains browserSite and browserSharedCookie resources. This API is available in the following national cloud deployments.
* Get a browserSiteList that contains browserSite and browserSharedCookie resources.
*/
class BrowserSiteListItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Publish the specified browserSiteList for devices to download. This API is available in the following national cloud deployments.
* Publish the specified browserSiteList for devices to download.
* @param PublishPostRequestBody $body The request body
* @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<BrowserSiteList|null>
Expand All @@ -48,7 +48,7 @@ public function post(PublishPostRequestBody $body, ?PublishRequestBuilderPostReq
}

/**
* Publish the specified browserSiteList for devices to download. This API is available in the following national cloud deployments.
* Publish the specified browserSiteList for devices to download.
* @param PublishPostRequestBody $body The request body
* @param PublishRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -62,7 +62,7 @@ public function toPostRequestInformation(PublishPostRequestBody $body, ?PublishR
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Delete a browserSharedCookie from a browserSiteList. This API is available in the following national cloud deployments.
* Delete a browserSharedCookie from a browserSiteList.
* @param BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<void|null>
* @throws Exception
Expand All @@ -47,7 +47,7 @@ public function delete(?BrowserSharedCookieItemRequestBuilderDeleteRequestConfig
}

/**
* Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is available in the following national cloud deployments.
* Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
* @param BrowserSharedCookieItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<BrowserSharedCookie|null>
* @throws Exception
Expand All @@ -63,7 +63,7 @@ public function get(?BrowserSharedCookieItemRequestBuilderGetRequestConfiguratio
}

/**
* Update the properties of a browserSharedCookie object. This API is available in the following national cloud deployments.
* Update the properties of a browserSharedCookie object.
* @param BrowserSharedCookie $body The request body
* @param BrowserSharedCookieItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<BrowserSharedCookie|null>
Expand All @@ -80,7 +80,7 @@ public function patch(BrowserSharedCookie $body, ?BrowserSharedCookieItemRequest
}

/**
* Delete a browserSharedCookie from a browserSiteList. This API is available in the following national cloud deployments.
* Delete a browserSharedCookie from a browserSiteList.
* @param BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -93,12 +93,12 @@ public function toDeleteRequestInformation(?BrowserSharedCookieItemRequestBuilde
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json, application/json");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is available in the following national cloud deployments.
* Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
* @param BrowserSharedCookieItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -114,12 +114,12 @@ public function toGetRequestInformation(?BrowserSharedCookieItemRequestBuilderGe
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Update the properties of a browserSharedCookie object. This API is available in the following national cloud deployments.
* Update the properties of a browserSharedCookie object.
* @param BrowserSharedCookie $body The request body
* @param BrowserSharedCookieItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -133,7 +133,7 @@ public function toPatchRequestInformation(BrowserSharedCookie $body, ?BrowserSha
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode. This API is available in the following national cloud deployments.
* Get a session cookie that can be shared between a Microsoft Edge process and an Internet Explorer process, while using Internet Explorer mode.
*/
class BrowserSharedCookieItemRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Get a list of the browserSharedCookie objects and their properties. This API is available in the following national cloud deployments.
* Get a list of the browserSharedCookie objects and their properties.
* @param SharedCookiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<BrowserSharedCookieCollectionResponse|null>
* @throws Exception
Expand All @@ -68,7 +68,7 @@ public function get(?SharedCookiesRequestBuilderGetRequestConfiguration $request
}

/**
* Create a new browserSharedCookie object in a browserSiteList. This API is available in the following national cloud deployments.
* Create a new browserSharedCookie object in a browserSiteList.
* @param BrowserSharedCookie $body The request body
* @param SharedCookiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<BrowserSharedCookie|null>
Expand All @@ -85,7 +85,7 @@ public function post(BrowserSharedCookie $body, ?SharedCookiesRequestBuilderPost
}

/**
* Get a list of the browserSharedCookie objects and their properties. This API is available in the following national cloud deployments.
* Get a list of the browserSharedCookie objects and their properties.
* @param SharedCookiesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -101,12 +101,12 @@ public function toGetRequestInformation(?SharedCookiesRequestBuilderGetRequestCo
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Create a new browserSharedCookie object in a browserSiteList. This API is available in the following national cloud deployments.
* Create a new browserSharedCookie object in a browserSiteList.
* @param BrowserSharedCookie $body The request body
* @param SharedCookiesRequestBuilderPostRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -120,7 +120,7 @@ public function toPostRequestInformation(BrowserSharedCookie $body, ?SharedCooki
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
$requestInfo->setContentFromParsable($this->requestAdapter, "application/json", $body);
return $requestInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Microsoft\Kiota\Abstractions\QueryParameter;

/**
* Get a list of the browserSharedCookie objects and their properties. This API is available in the following national cloud deployments.
* Get a list of the browserSharedCookie objects and their properties.
*/
class SharedCookiesRequestBuilderGetQueryParameters
{
Expand Down
Loading