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

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.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project does adheres to [Semantic Versioning](https://semver.org/spec/v

## [Unreleased]

## [5.25.0] - 2023-08-30

- Add `WithUrl` request builders to allow for easier making of requests with arbitrary Urls(https://github.com/microsoft/kiota/pull/3212)
- Latest metadata updates from 29th August 2023.

## [5.24.0] - 2023-08-23

- Adds GraphServiceClient constructor for use with a `TokenCredential` and a `HttpClient`.
Expand Down
7 changes: 7 additions & 0 deletions src/Microsoft.Graph/Generated/Admin/AdminRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Admin
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public AdminRequestBuilder WithUrl(string rawUrl) {
return new AdminRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get admin
/// </summary>
public class AdminRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Edge
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public EdgeRequestBuilder WithUrl(string rawUrl) {
return new EdgeRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class EdgeRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ public RequestInformation ToPatchRequestInformation(Microsoft.Graph.Models.Inter
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public InternetExplorerModeRequestBuilder WithUrl(string rawUrl) {
return new InternetExplorerModeRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class InternetExplorerModeRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public RequestInformation ToGetRequestInformation(Action<CountRequestBuilderGetR
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder WithUrl(string rawUrl) {
return new CountRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get the number of the resource
/// </summary>
public class CountRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,13 @@ public RequestInformation ToPatchRequestInformation(BrowserSiteList body, Action
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public BrowserSiteListItemRequestBuilder WithUrl(string rawUrl) {
return new BrowserSiteListItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class BrowserSiteListItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ public RequestInformation ToPostRequestInformation(PublishPostRequestBody body,
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public PublishRequestBuilder WithUrl(string rawUrl) {
return new PublishRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class PublishRequestBuilderPostRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public RequestInformation ToGetRequestInformation(Action<CountRequestBuilderGetR
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder WithUrl(string rawUrl) {
return new CountRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get the number of the resource
/// </summary>
public class CountRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ public RequestInformation ToPatchRequestInformation(BrowserSharedCookie body, Ac
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public BrowserSharedCookieItemRequestBuilder WithUrl(string rawUrl) {
return new BrowserSharedCookieItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class BrowserSharedCookieItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ public RequestInformation ToPostRequestInformation(BrowserSharedCookie body, Act
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public SharedCookiesRequestBuilder WithUrl(string rawUrl) {
return new SharedCookiesRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get a list of the browserSharedCookie objects and their properties.
/// </summary>
public class SharedCookiesRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public RequestInformation ToGetRequestInformation(Action<CountRequestBuilderGetR
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder WithUrl(string rawUrl) {
return new CountRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get the number of the resource
/// </summary>
public class CountRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,13 @@ public RequestInformation ToPatchRequestInformation(BrowserSite body, Action<Bro
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public BrowserSiteItemRequestBuilder WithUrl(string rawUrl) {
return new BrowserSiteItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class BrowserSiteItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ public RequestInformation ToPostRequestInformation(BrowserSite body, Action<Site
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public SitesRequestBuilder WithUrl(string rawUrl) {
return new SitesRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get a list of the browserSite objects and their properties.
/// </summary>
public class SitesRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ public RequestInformation ToPostRequestInformation(BrowserSiteList body, Action<
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public SiteListsRequestBuilder WithUrl(string rawUrl) {
return new SiteListsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get a list of the browserSiteList objects and their properties.
/// </summary>
public class SiteListsRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public RequestInformation ToGetRequestInformation(Action<CountRequestBuilderGetR
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder WithUrl(string rawUrl) {
return new CountRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get the number of the resource
/// </summary>
public class CountRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ public RequestInformation ToPostRequestInformation(ServiceHealth body, Action<He
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public HealthOverviewsRequestBuilder WithUrl(string rawUrl) {
return new HealthOverviewsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Retrieve the serviceHealth resources from the healthOverviews navigation property. This operation provides the health report of all subscribed services for a tenant.
/// </summary>
public class HealthOverviewsRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public RequestInformation ToGetRequestInformation(Action<CountRequestBuilderGetR
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder WithUrl(string rawUrl) {
return new CountRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get the number of the resource
/// </summary>
public class CountRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Acti
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public IssuesRequestBuilder WithUrl(string rawUrl) {
return new IssuesRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// A collection of issues that happened on the service, with detailed information for each issue.
/// </summary>
public class IssuesRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public RequestInformation ToGetRequestInformation(Action<IncidentReportRequestBu
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public IncidentReportRequestBuilder WithUrl(string rawUrl) {
return new IncidentReportRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class IncidentReportRequestBuilderGetRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,13 @@ public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Act
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public ServiceHealthIssueItemRequestBuilder WithUrl(string rawUrl) {
return new ServiceHealthIssueItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ServiceHealthIssueItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ public RequestInformation ToPatchRequestInformation(ServiceHealth body, Action<S
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public ServiceHealthItemRequestBuilder WithUrl(string rawUrl) {
return new ServiceHealthItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ServiceHealthItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ public RequestInformation ToGetRequestInformation(Action<CountRequestBuilderGetR
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder WithUrl(string rawUrl) {
return new CountRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get the number of the resource
/// </summary>
public class CountRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ public RequestInformation ToPostRequestInformation(ServiceHealthIssue body, Acti
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public IssuesRequestBuilder WithUrl(string rawUrl) {
return new IssuesRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Retrieve serviceHealthIssue resources from the issues navigation property. This operation retrieves information about all service health issues that exist for the tenant.
/// </summary>
public class IssuesRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ public RequestInformation ToGetRequestInformation(Action<IncidentReportRequestBu
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public IncidentReportRequestBuilder WithUrl(string rawUrl) {
return new IncidentReportRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class IncidentReportRequestBuilderGetRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,13 @@ public RequestInformation ToPatchRequestInformation(ServiceHealthIssue body, Act
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public ServiceHealthIssueItemRequestBuilder WithUrl(string rawUrl) {
return new ServiceHealthIssueItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ServiceHealthIssueItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,13 @@ public RequestInformation ToPostRequestInformation(ArchivePostRequestBody body,
return requestInfo;
}
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public ArchiveRequestBuilder WithUrl(string rawUrl) {
return new ArchiveRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ArchiveRequestBuilderPostRequestConfiguration {
Expand Down
Loading
Loading