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 beta models and request builders #719

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 NOT adhere to [Semantic Versioning](https://semver.org/spe

## [Unreleased]

## [5.46.0-preview] - 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.45.0-preview] - 2023-08-23

- Adds GraphServiceClient constructor for use with a `TokenCredential` and a `HttpClient`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision 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 AccessReviewDecisionsRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewDecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get entities from accessReviewDecisions
/// </summary>
public class AccessReviewDecisionsRequestBuilderGetQueryParameters {
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 @@ -166,6 +166,13 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
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 AccessReviewDecisionItemRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewDecisionItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AccessReviewDecisionItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,13 @@ public RequestInformation ToPostRequestInformation(AccessReview body, Action<Acc
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 AccessReviewsRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Retrieve the accessReview objects for a particular businessFlowTemplate. A list of zero or more accessReview objects are returned, for each one-time and recurring access review that was created with that business flow template. Note that business flow template IDs are case sensitive. If many access reviews match the filter, to improve efficiency and avoid timeouts, retrieve the result set in pages, by including both the $top query parameter with a page size, for example 100, and the $skip=0 query parameter in the request. These parameters can be included even when you do not anticipate that the request will span multiple pages. When a result set spans multiple pages, Microsoft Graph returns that page with an @odata.nextLink property in the response that contains a URL to the next page of results. If that property is present, continue making additional requests with the @odata.nextLink URL in each response, until all the results are returned, as described in paging Microsoft Graph data in your app. The accessReview objects returned by this API will not include nested structure properties such as settings, or relationships. To retrieve an access review settings or relationships, use the get accessReview API.
/// </summary>
public class AccessReviewsRequestBuilderGetQueryParameters {
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 @@ -209,6 +209,13 @@ public RequestInformation ToPatchRequestInformation(AccessReview body, Action<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 AccessReviewItemRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AccessReviewItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public RequestInformation ToPostRequestInformation(Action<ApplyDecisionsRequestB
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 ApplyDecisionsRequestBuilder WithUrl(string rawUrl) {
return new ApplyDecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ApplyDecisionsRequestBuilderPostRequestConfiguration {
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(AccessReviewDecision 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 DecisionsRequestBuilder WithUrl(string rawUrl) {
return new DecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// In the Azure AD access reviews feature, retrieve the decisions of an accessReview object. Note that a recurring access review will not have a decisions relationship. Instead, the caller must navigate the instance relationship to find an accessReview object for a current or past instance of the access review.
/// </summary>
public class DecisionsRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
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 AccessReviewDecisionItemRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewDecisionItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AccessReviewDecisionItemRequestBuilderDeleteRequestConfiguration {
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(AccessReview body, Action<Ins
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 InstancesRequestBuilder WithUrl(string rawUrl) {
return new InstancesRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// The collection of access reviews instances past, present and future, if this object is a recurring access review.
/// </summary>
public class InstancesRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,13 @@ public RequestInformation ToPatchRequestInformation(AccessReview body, Action<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 AccessReviewItemRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AccessReviewItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public RequestInformation ToPostRequestInformation(Action<ApplyDecisionsRequestB
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 ApplyDecisionsRequestBuilder WithUrl(string rawUrl) {
return new ApplyDecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ApplyDecisionsRequestBuilderPostRequestConfiguration {
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(AccessReviewDecision 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 DecisionsRequestBuilder WithUrl(string rawUrl) {
return new DecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// In the Azure AD access reviews feature, retrieve the decisions of an accessReview object. Note that a recurring access review will not have a decisions relationship. Instead, the caller must navigate the instance relationship to find an accessReview object for a current or past instance of the access review.
/// </summary>
public class DecisionsRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,13 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
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 AccessReviewDecisionItemRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewDecisionItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AccessReviewDecisionItemRequestBuilderDeleteRequestConfiguration {
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 @@ -166,6 +166,13 @@ public RequestInformation ToPatchRequestInformation(AccessReviewDecision body, A
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 AccessReviewDecisionItemRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewDecisionItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AccessReviewDecisionItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,13 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision 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 MyDecisionsRequestBuilder WithUrl(string rawUrl) {
return new MyDecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// In the Azure AD access reviews feature, retrieve the decisions of an accessReview object for the calling user as reviewer.
/// </summary>
public class MyDecisionsRequestBuilderGetQueryParameters {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ public RequestInformation ToPostRequestInformation(Action<ResetDecisionsRequestB
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 ResetDecisionsRequestBuilder WithUrl(string rawUrl) {
return new ResetDecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ResetDecisionsRequestBuilderPostRequestConfiguration {
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 @@ -167,6 +167,13 @@ public RequestInformation ToPatchRequestInformation(AccessReviewReviewer body, A
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 AccessReviewReviewerItemRequestBuilder WithUrl(string rawUrl) {
return new AccessReviewReviewerItemRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class AccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration {
Expand Down
Loading
Loading