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 #1404

Closed
Closed
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.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ You can install the PHP SDK with Composer by editing your `composer.json` file:
{
"minimum-stability": "RC",
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC27",
"microsoft/microsoft-graph": "^2.0.0-RC28",
}
}
```
OR
```
{
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC27",
"microsoft/microsoft-graph": "^2.0.0-RC28",
"microsoft/microsoft-graph-core": "@RC"
}
}
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 @@ -117,7 +117,7 @@ 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;
}

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

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 @@ -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 @@ -93,7 +93,7 @@ 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;
}

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

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 @@ -101,7 +101,7 @@ public function toGetRequestInformation(?SharedCookiesRequestBuilderGetRequestCo
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

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 @@ -93,7 +93,7 @@ public function toDeleteRequestInformation(?BrowserSiteItemRequestBuilderDeleteR
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json, application/json");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

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

Expand All @@ -133,7 +133,7 @@ public function toPatchRequestInformation(BrowserSite $body, ?BrowserSiteItemReq
$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 @@ -101,7 +101,7 @@ public function toGetRequestInformation(?SitesRequestBuilderGetRequestConfigurat
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -120,7 +120,7 @@ public function toPostRequestInformation(BrowserSite $body, ?SitesRequestBuilder
$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 @@ -101,7 +101,7 @@ public function toGetRequestInformation(?SiteListsRequestBuilderGetRequestConfig
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -120,7 +120,7 @@ public function toPostRequestInformation(BrowserSiteList $body, ?SiteListsReques
$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
9 changes: 5 additions & 4 deletions src/Generated/Admin/People/PeopleRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Get people from admin
* Retrieve the properties and relationships of a peopleAdminSettings object.
* @param PeopleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<PeopleAdminSettings|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/peopleadminsettings-get?view=graph-rest-1.0 Find more info here
*/
public function get(?PeopleRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand Down Expand Up @@ -70,7 +71,7 @@ public function patch(PeopleAdminSettings $body, ?PeopleRequestBuilderPatchReque
}

/**
* Get people from admin
* Retrieve the properties and relationships of a peopleAdminSettings object.
* @param PeopleRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -86,7 +87,7 @@ public function toGetRequestInformation(?PeopleRequestBuilderGetRequestConfigura
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

Expand All @@ -105,7 +106,7 @@ public function toPatchRequestInformation(PeopleAdminSettings $body, ?PeopleRequ
$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 people from admin
* Retrieve the properties and relationships of a peopleAdminSettings object.
*/
class PeopleRequestBuilderGetQueryParameters
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdap
}

/**
* Delete navigation property profileCardProperties for admin
* Delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property.
* @param ProfileCardPropertyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<void|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/profilecardproperty-delete?view=graph-rest-1.0 Find more info here
*/
public function delete(?ProfileCardPropertyItemRequestBuilderDeleteRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toDeleteRequestInformation($requestConfiguration);
Expand All @@ -46,10 +47,11 @@ public function delete(?ProfileCardPropertyItemRequestBuilderDeleteRequestConfig
}

/**
* Get profileCardProperties from admin
* Retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property.
* @param ProfileCardPropertyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ProfileCardProperty|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/profilecardproperty-get?view=graph-rest-1.0 Find more info here
*/
public function get(?ProfileCardPropertyItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
Expand All @@ -61,11 +63,12 @@ public function get(?ProfileCardPropertyItemRequestBuilderGetRequestConfiguratio
}

/**
* Update the navigation property profileCardProperties in admin
* Update the properties of a profileCardProperty object, identified by its directoryPropertyName property.
* @param ProfileCardProperty $body The request body
* @param ProfileCardPropertyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return Promise<ProfileCardProperty|null>
* @throws Exception
* @link https://learn.microsoft.com/graph/api/profilecardproperty-update?view=graph-rest-1.0 Find more info here
*/
public function patch(ProfileCardProperty $body, ?ProfileCardPropertyItemRequestBuilderPatchRequestConfiguration $requestConfiguration = null): Promise {
$requestInfo = $this->toPatchRequestInformation($body, $requestConfiguration);
Expand All @@ -77,7 +80,7 @@ public function patch(ProfileCardProperty $body, ?ProfileCardPropertyItemRequest
}

/**
* Delete navigation property profileCardProperties for admin
* Delete the profileCardProperty object specified by its directoryPropertyName from the organization's profile card, and remove any localized customizations for that property.
* @param ProfileCardPropertyItemRequestBuilderDeleteRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -90,12 +93,12 @@ public function toDeleteRequestInformation(?ProfileCardPropertyItemRequestBuilde
$requestInfo->addHeaders($requestConfiguration->headers);
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json, application/json");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Get profileCardProperties from admin
* Retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property.
* @param ProfileCardPropertyItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
*/
Expand All @@ -111,12 +114,12 @@ public function toGetRequestInformation(?ProfileCardPropertyItemRequestBuilderGe
}
$requestInfo->addRequestOptions(...$requestConfiguration->options);
}
$requestInfo->tryAddHeader('Accept', "application/json;q=1");
$requestInfo->tryAddHeader('Accept', "application/json");
return $requestInfo;
}

/**
* Update the navigation property profileCardProperties in admin
* Update the properties of a profileCardProperty object, identified by its directoryPropertyName property.
* @param ProfileCardProperty $body The request body
* @param ProfileCardPropertyItemRequestBuilderPatchRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @return RequestInformation
Expand All @@ -130,7 +133,7 @@ public function toPatchRequestInformation(ProfileCardProperty $body, ?ProfileCar
$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 profileCardProperties from admin
* Retrieve the properties of a profileCardProperty entity. The profileCardProperty is identified by its directoryPropertyName property.
*/
class ProfileCardPropertyItemRequestBuilderGetQueryParameters
{
Expand Down
Loading