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

Merged
merged 2 commits into from
Aug 31, 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.
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-RC22",
"microsoft/microsoft-graph": "^2.0.0-RC23",
}
}
```
OR
```
{
"require": {
"microsoft/microsoft-graph": "^2.0.0-RC22",
"microsoft/microsoft-graph": "^2.0.0-RC23",
"microsoft/microsoft-graph-core": "@RC"
}
}
Expand Down
9 changes: 9 additions & 0 deletions src/Generated/Admin/AdminRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,13 @@ public function toPatchRequestInformation(Admin $body, ?AdminRequestBuilderPatch
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return AdminRequestBuilder
*/
public function withUrl(string $rawUrl): AdminRequestBuilder {
return new AdminRequestBuilder($rawUrl, $this->requestAdapter);
}

}
9 changes: 9 additions & 0 deletions src/Generated/Admin/Edge/EdgeRequestBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,13 @@ public function toPatchRequestInformation(Edge $body, ?EdgeRequestBuilderPatchRe
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return EdgeRequestBuilder
*/
public function withUrl(string $rawUrl): EdgeRequestBuilder {
return new EdgeRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,13 @@ public function toPatchRequestInformation(InternetExplorerMode $body, ?InternetE
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return InternetExplorerModeRequestBuilder
*/
public function withUrl(string $rawUrl): InternetExplorerModeRequestBuilder {
return new InternetExplorerModeRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using 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);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,13 @@ public function toPatchRequestInformation(BrowserSiteList $body, ?BrowserSiteLis
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return BrowserSiteListItemRequestBuilder
*/
public function withUrl(string $rawUrl): BrowserSiteListItemRequestBuilder {
return new BrowserSiteListItemRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,13 @@ public function toPostRequestInformation(PublishPostRequestBody $body, ?PublishR
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return PublishRequestBuilder
*/
public function withUrl(string $rawUrl): PublishRequestBuilder {
return new PublishRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using 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);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,13 @@ public function toPatchRequestInformation(BrowserSharedCookie $body, ?BrowserSha
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return BrowserSharedCookieItemRequestBuilder
*/
public function withUrl(string $rawUrl): BrowserSharedCookieItemRequestBuilder {
return new BrowserSharedCookieItemRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,13 @@ public function toPostRequestInformation(BrowserSharedCookie $body, ?SharedCooki
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return SharedCookiesRequestBuilder
*/
public function withUrl(string $rawUrl): SharedCookiesRequestBuilder {
return new SharedCookiesRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using 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);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,13 @@ public function toPatchRequestInformation(BrowserSite $body, ?BrowserSiteItemReq
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return BrowserSiteItemRequestBuilder
*/
public function withUrl(string $rawUrl): BrowserSiteItemRequestBuilder {
return new BrowserSiteItemRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,13 @@ public function toPostRequestInformation(BrowserSite $body, ?SitesRequestBuilder
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return SitesRequestBuilder
*/
public function withUrl(string $rawUrl): SitesRequestBuilder {
return new SitesRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,13 @@ public function toPostRequestInformation(BrowserSiteList $body, ?SiteListsReques
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return SiteListsRequestBuilder
*/
public function withUrl(string $rawUrl): SiteListsRequestBuilder {
return new SiteListsRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using 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);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,13 @@ public function toPostRequestInformation(ServiceHealth $body, ?HealthOverviewsRe
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return HealthOverviewsRequestBuilder
*/
public function withUrl(string $rawUrl): HealthOverviewsRequestBuilder {
return new HealthOverviewsRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using 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);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,13 @@ public function toPostRequestInformation(ServiceHealthIssue $body, ?IssuesReques
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return IssuesRequestBuilder
*/
public function withUrl(string $rawUrl): IssuesRequestBuilder {
return new IssuesRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,13 @@ public function toGetRequestInformation(?IncidentReportRequestBuilderGetRequestC
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return IncidentReportRequestBuilder
*/
public function withUrl(string $rawUrl): IncidentReportRequestBuilder {
return new IncidentReportRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,13 @@ public function toPatchRequestInformation(ServiceHealthIssue $body, ?ServiceHeal
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return ServiceHealthIssueItemRequestBuilder
*/
public function withUrl(string $rawUrl): ServiceHealthIssueItemRequestBuilder {
return new ServiceHealthIssueItemRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,13 @@ public function toPatchRequestInformation(ServiceHealth $body, ?ServiceHealthIte
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return ServiceHealthItemRequestBuilder
*/
public function withUrl(string $rawUrl): ServiceHealthItemRequestBuilder {
return new ServiceHealthItemRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using 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);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,13 @@ public function toPostRequestInformation(ServiceHealthIssue $body, ?IssuesReques
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return IssuesRequestBuilder
*/
public function withUrl(string $rawUrl): IssuesRequestBuilder {
return new IssuesRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,13 @@ public function toGetRequestInformation(?IncidentReportRequestBuilderGetRequestC
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return IncidentReportRequestBuilder
*/
public function withUrl(string $rawUrl): IncidentReportRequestBuilder {
return new IncidentReportRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,13 @@ public function toPatchRequestInformation(ServiceHealthIssue $body, ?ServiceHeal
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return ServiceHealthIssueItemRequestBuilder
*/
public function withUrl(string $rawUrl): ServiceHealthIssueItemRequestBuilder {
return new ServiceHealthIssueItemRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ public function toPostRequestInformation(ArchivePostRequestBody $body, ?ArchiveR
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return ArchiveRequestBuilder
*/
public function withUrl(string $rawUrl): ArchiveRequestBuilder {
return new ArchiveRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,13 @@ public function toGetRequestInformation(?CountRequestBuilderGetRequestConfigurat
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using 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);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,13 @@ public function toPostRequestInformation(FavoritePostRequestBody $body, ?Favorit
return $requestInfo;
}

/**
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
* @param string $rawUrl The raw URL to use for the request builder.
* @return FavoriteRequestBuilder
*/
public function withUrl(string $rawUrl): FavoriteRequestBuilder {
return new FavoriteRequestBuilder($rawUrl, $this->requestAdapter);
}

}
Loading