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

Merged
merged 3 commits into from
Jun 6, 2024
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: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project does NOT adhere to [Semantic Versioning](https://semver.org/spe

## [Unreleased]

## [5.78.0-preview] - 2024-06-06

- Latest metadata updates from 4th June 2024.

## [5.77.0-preview] - 2024-05-31

- Latest metadata updates from 28th May 2024.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,32 @@ namespace Microsoft.Graph.Beta.AccessReviewDecisions
public class AccessReviewDecisionsRequestBuilder : BaseRequestBuilder
{
/// <summary>Provides operations to count the resources in the collection.</summary>
public CountRequestBuilder Count
public Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder Count
{
get => new CountRequestBuilder(PathParameters, RequestAdapter);
get => new Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the collection of accessReviewDecision entities.</summary>
/// <param name="position">The unique identifier of accessReviewDecision</param>
/// <returns>A <see cref="AccessReviewDecisionItemRequestBuilder"/></returns>
public AccessReviewDecisionItemRequestBuilder this[string position]
/// <returns>A <see cref="Microsoft.Graph.Beta.AccessReviewDecisions.Item.AccessReviewDecisionItemRequestBuilder"/></returns>
public Microsoft.Graph.Beta.AccessReviewDecisions.Item.AccessReviewDecisionItemRequestBuilder this[string position]
{
get
{
var urlTplParams = new Dictionary<string, object>(PathParameters);
urlTplParams.Add("accessReviewDecision%2Did", position);
return new AccessReviewDecisionItemRequestBuilder(urlTplParams, RequestAdapter);
return new Microsoft.Graph.Beta.AccessReviewDecisions.Item.AccessReviewDecisionItemRequestBuilder(urlTplParams, RequestAdapter);
}
}
/// <summary>
/// Instantiates a new <see cref="AccessReviewDecisionsRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public AccessReviewDecisionsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/accessReviewDecisions{?%24count,%24expand,%24filter,%24orderby,%24search,%24select,%24skip,%24top}", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="AccessReviewDecisionsRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
Expand All @@ -54,50 +54,50 @@ public AccessReviewDecisionsRequestBuilder(string rawUrl, IRequestAdapter reques
/// <summary>
/// Get entities from accessReviewDecisions
/// </summary>
/// <returns>A <see cref="AccessReviewDecisionCollectionResponse"/></returns>
/// <returns>A <see cref="Microsoft.Graph.Beta.Models.AccessReviewDecisionCollectionResponse"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
/// <exception cref="Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<AccessReviewDecisionCollectionResponse?> GetAsync(Action<RequestConfiguration<AccessReviewDecisionsRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<Microsoft.Graph.Beta.Models.AccessReviewDecisionCollectionResponse?> GetAsync(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder.AccessReviewDecisionsRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<AccessReviewDecisionCollectionResponse> GetAsync(Action<RequestConfiguration<AccessReviewDecisionsRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<Microsoft.Graph.Beta.Models.AccessReviewDecisionCollectionResponse> GetAsync(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder.AccessReviewDecisionsRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{ "XXX", ODataError.CreateFromDiscriminatorValue },
{ "XXX", Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<AccessReviewDecisionCollectionResponse>(requestInfo, AccessReviewDecisionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendAsync<Microsoft.Graph.Beta.Models.AccessReviewDecisionCollectionResponse>(requestInfo, Microsoft.Graph.Beta.Models.AccessReviewDecisionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Add new entity to accessReviewDecisions
/// </summary>
/// <returns>A <see cref="AccessReviewDecision"/></returns>
/// <returns>A <see cref="Microsoft.Graph.Beta.Models.AccessReviewDecision"/></returns>
/// <param name="body">The request body</param>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
/// <exception cref="Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<AccessReviewDecision?> PostAsync(AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<Microsoft.Graph.Beta.Models.AccessReviewDecision?> PostAsync(Microsoft.Graph.Beta.Models.AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<AccessReviewDecision> PostAsync(AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<Microsoft.Graph.Beta.Models.AccessReviewDecision> PostAsync(Microsoft.Graph.Beta.Models.AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
var requestInfo = ToPostRequestInformation(body, requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{ "XXX", ODataError.CreateFromDiscriminatorValue },
{ "XXX", Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendAsync<AccessReviewDecision>(requestInfo, AccessReviewDecision.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
return await RequestAdapter.SendAsync<Microsoft.Graph.Beta.Models.AccessReviewDecision>(requestInfo, Microsoft.Graph.Beta.Models.AccessReviewDecision.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false);
}
/// <summary>
/// Get entities from accessReviewDecisions
Expand All @@ -106,11 +106,11 @@ public async Task<AccessReviewDecision> PostAsync(AccessReviewDecision body, Act
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AccessReviewDecisionsRequestBuilderGetQueryParameters>>? requestConfiguration = default)
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder.AccessReviewDecisionsRequestBuilderGetQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<AccessReviewDecisionsRequestBuilderGetQueryParameters>> requestConfiguration = default)
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder.AccessReviewDecisionsRequestBuilderGetQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
Expand All @@ -126,11 +126,11 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Ac
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
public RequestInformation ToPostRequestInformation(Microsoft.Graph.Beta.Models.AccessReviewDecision body, Action<RequestConfiguration<DefaultQueryParameters>> requestConfiguration = default)
{
#endif
_ = body ?? throw new ArgumentNullException(nameof(body));
Expand All @@ -143,11 +143,11 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Ac
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <returns>A <see cref="AccessReviewDecisionsRequestBuilder"/></returns>
/// <returns>A <see cref="Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder"/></returns>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public AccessReviewDecisionsRequestBuilder WithUrl(string rawUrl)
public Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder WithUrl(string rawUrl)
{
return new AccessReviewDecisionsRequestBuilder(rawUrl, RequestAdapter);
return new Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get entities from accessReviewDecisions
Expand Down Expand Up @@ -218,7 +218,7 @@ public class AccessReviewDecisionsRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class AccessReviewDecisionsRequestBuilderGetRequestConfiguration : RequestConfiguration<AccessReviewDecisionsRequestBuilderGetQueryParameters>
public class AccessReviewDecisionsRequestBuilderGetRequestConfiguration : RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.AccessReviewDecisionsRequestBuilder.AccessReviewDecisionsRequestBuilderGetQueryParameters>
{
}
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ namespace Microsoft.Graph.Beta.AccessReviewDecisions.Count
public class CountRequestBuilder : BaseRequestBuilder
{
/// <summary>
/// Instantiates a new <see cref="CountRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="pathParameters">Path parameters for the request</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
public CountRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}/accessReviewDecisions/$count{?%24filter,%24search}", pathParameters)
{
}
/// <summary>
/// Instantiates a new <see cref="CountRequestBuilder"/> and sets the default values.
/// Instantiates a new <see cref="Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder"/> and sets the default values.
/// </summary>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
/// <param name="requestAdapter">The request adapter to use to execute the requests.</param>
Expand All @@ -37,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// <returns>A <see cref="int"/></returns>
/// <param name="cancellationToken">Cancellation token to use when cancelling requests</param>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
/// <exception cref="ODataError">When receiving a 4XX or 5XX status code</exception>
/// <exception cref="Microsoft.Graph.Beta.Models.ODataErrors.ODataError">When receiving a 4XX or 5XX status code</exception>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task<int?> GetAsync(Action<RequestConfiguration<CountRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<int?> GetAsync(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>>? requestConfiguration = default, CancellationToken cancellationToken = default)
{
#nullable restore
#else
public async Task<int?> GetAsync(Action<RequestConfiguration<CountRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
public async Task<int?> GetAsync(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>> requestConfiguration = default, CancellationToken cancellationToken = default)
{
#endif
var requestInfo = ToGetRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>>
{
{ "XXX", ODataError.CreateFromDiscriminatorValue },
{ "XXX", Microsoft.Graph.Beta.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue },
};
return await RequestAdapter.SendPrimitiveAsync<int?>(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false);
}
Expand All @@ -61,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<CountRequestBuilderGetQueryParameters>>? requestConfiguration = default)
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>>? requestConfiguration = default)
{
#nullable restore
#else
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<CountRequestBuilderGetQueryParameters>> requestConfiguration = default)
public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>> requestConfiguration = default)
{
#endif
var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters);
Expand All @@ -76,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action<RequestConfiguration<Co
/// <summary>
/// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
/// </summary>
/// <returns>A <see cref="CountRequestBuilder"/></returns>
/// <returns>A <see cref="Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder"/></returns>
/// <param name="rawUrl">The raw URL to use for the request builder.</param>
public CountRequestBuilder WithUrl(string rawUrl)
public Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder WithUrl(string rawUrl)
{
return new CountRequestBuilder(rawUrl, RequestAdapter);
return new Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder(rawUrl, RequestAdapter);
}
/// <summary>
/// Get the number of the resource
Expand Down Expand Up @@ -112,7 +112,7 @@ public class CountRequestBuilderGetQueryParameters
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
[Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")]
public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<CountRequestBuilderGetQueryParameters>
public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration<Microsoft.Graph.Beta.AccessReviewDecisions.Count.CountRequestBuilder.CountRequestBuilderGetQueryParameters>
{
}
}
Expand Down
Loading
Loading