Skip to content

Commit

Permalink
Update generated files with build 107290
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Feb 28, 2023
1 parent e442aa3 commit 8ab8ac2
Show file tree
Hide file tree
Showing 15,910 changed files with 725,813 additions and 746,620 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Microsoft.Graph.Beta.AccessReviews.Item.ApplyDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Decisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances;
using Microsoft.Graph.Beta.AccessReviews.Item.MicrosoftGraphApplyDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.MicrosoftGraphResetDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.MicrosoftGraphSendReminder;
using Microsoft.Graph.Beta.AccessReviews.Item.MicrosoftGraphStop;
using Microsoft.Graph.Beta.AccessReviews.Item.MyDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.ResetDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Reviewers;
using Microsoft.Graph.Beta.AccessReviews.Item.SendReminder;
using Microsoft.Graph.Beta.AccessReviews.Item.Stop;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
using Microsoft.Kiota.Abstractions;
Expand All @@ -21,6 +21,10 @@ namespace Microsoft.Graph.Beta.AccessReviews.Item {
/// Provides operations to manage the collection of accessReview entities.
/// </summary>
public class AccessReviewItemRequestBuilder {
/// <summary>Provides operations to call the applyDecisions method.</summary>
public ApplyDecisionsRequestBuilder ApplyDecisions { get =>
new ApplyDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.</summary>
public DecisionsRequestBuilder Decisions { get =>
new DecisionsRequestBuilder(PathParameters, RequestAdapter);
Expand All @@ -29,22 +33,6 @@ public class AccessReviewItemRequestBuilder {
public InstancesRequestBuilder Instances { get =>
new InstancesRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the applyDecisions method.</summary>
public MicrosoftGraphApplyDecisionsRequestBuilder MicrosoftGraphApplyDecisions { get =>
new MicrosoftGraphApplyDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the resetDecisions method.</summary>
public MicrosoftGraphResetDecisionsRequestBuilder MicrosoftGraphResetDecisions { get =>
new MicrosoftGraphResetDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the sendReminder method.</summary>
public MicrosoftGraphSendReminderRequestBuilder MicrosoftGraphSendReminder { get =>
new MicrosoftGraphSendReminderRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the stop method.</summary>
public MicrosoftGraphStopRequestBuilder MicrosoftGraphStop { get =>
new MicrosoftGraphStopRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.</summary>
public MyDecisionsRequestBuilder MyDecisions { get =>
new MyDecisionsRequestBuilder(PathParameters, RequestAdapter);
Expand All @@ -53,10 +41,22 @@ public class AccessReviewItemRequestBuilder {
private Dictionary<string, object> PathParameters { get; set; }
/// <summary>The request adapter to use to execute the requests.</summary>
private IRequestAdapter RequestAdapter { get; set; }
/// <summary>Provides operations to call the resetDecisions method.</summary>
public ResetDecisionsRequestBuilder ResetDecisions { get =>
new ResetDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.</summary>
public ReviewersRequestBuilder Reviewers { get =>
new ReviewersRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the sendReminder method.</summary>
public SendReminderRequestBuilder SendReminder { get =>
new SendReminderRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the stop method.</summary>
public StopRequestBuilder Stop { get =>
new StopRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Url template to use to build the URL for the current request builder</summary>
private string UrlTemplate { get; set; }
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
using Microsoft.Graph.Beta.Models.ODataErrors;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Abstractions.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace Microsoft.Graph.Beta.AccessReviews.Item.ApplyDecisions {
/// <summary>
/// Provides operations to call the applyDecisions method.
/// </summary>
public class ApplyDecisionsRequestBuilder {
/// <summary>Path parameters for the request</summary>
private Dictionary<string, object> PathParameters { get; set; }
/// <summary>The request adapter to use to execute the requests.</summary>
private IRequestAdapter RequestAdapter { get; set; }
/// <summary>Url template to use to build the URL for the current request builder</summary>
private string UrlTemplate { get; set; }
/// <summary>
/// Instantiates a new ApplyDecisionsRequestBuilder 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 ApplyDecisionsRequestBuilder(Dictionary<string, object> pathParameters, IRequestAdapter requestAdapter) {
_ = pathParameters ?? throw new ArgumentNullException(nameof(pathParameters));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
UrlTemplate = "{+baseurl}/accessReviews/{accessReview%2Did}/applyDecisions";
var urlTplParams = new Dictionary<string, object>(pathParameters);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
/// <summary>
/// Instantiates a new ApplyDecisionsRequestBuilder 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>
public ApplyDecisionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) {
if(string.IsNullOrEmpty(rawUrl)) throw new ArgumentNullException(nameof(rawUrl));
_ = requestAdapter ?? throw new ArgumentNullException(nameof(requestAdapter));
UrlTemplate = "{+baseurl}/accessReviews/{accessReview%2Did}/applyDecisions";
var urlTplParams = new Dictionary<string, object>();
if (!string.IsNullOrWhiteSpace(rawUrl)) urlTplParams.Add("request-raw-url", rawUrl);
PathParameters = urlTplParams;
RequestAdapter = requestAdapter;
}
/// <summary>
/// In the Azure AD access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn&apos;t configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user&apos;s access was denied in the review, when an administrator calls this API, Azure AD removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn&apos;t have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory.
/// Find more info here <see href="https://docs.microsoft.com/graph/api/accessreview-apply?view=graph-rest-1.0" />
/// </summary>
/// <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>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
public async Task PostAsync(Action<ApplyDecisionsRequestBuilderPostRequestConfiguration>? requestConfiguration = default, CancellationToken cancellationToken = default) {
#nullable restore
#else
public async Task PostAsync(Action<ApplyDecisionsRequestBuilderPostRequestConfiguration> requestConfiguration = default, CancellationToken cancellationToken = default) {
#endif
var requestInfo = ToPostRequestInformation(requestConfiguration);
var errorMapping = new Dictionary<string, ParsableFactory<IParsable>> {
{"4XX", ODataError.CreateFromDiscriminatorValue},
{"5XX", ODataError.CreateFromDiscriminatorValue},
};
await RequestAdapter.SendNoContentAsync(requestInfo, errorMapping, cancellationToken);
}
/// <summary>
/// In the Azure AD access reviews feature, apply the decisions of a completed accessReview. The target object can be either a one-time access review, or an instance of a recurring access review. After an access review is finished, either because it reached the end date or an administrator stopped it manually, and auto-apply wasn&apos;t configured for the review, you can call Apply to apply the changes. Until apply occurs, the decisions to remove access rights do not appear on the source resource, the users for instance retain their group memberships. By calling apply, the outcome of the review is implemented by updating the group or application. If a user&apos;s access was denied in the review, when an administrator calls this API, Azure AD removes their membership or application assignment. After an access review is finished, and auto-apply was configured, then the status of the review will change from Completed through intermediate states and finally will change to state Applied. You should expect to see denied users, if any, being removed from the resource group membership or app assignment in a few minutes. A configured auto applying review, or selecting Apply doesn&apos;t have an effect on a group that originates in an on-premises directory or a dynamic group. If you want to change a group that originates on-premises, download the results and apply those changes to the representation of the group in that directory.
/// </summary>
/// <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(Action<ApplyDecisionsRequestBuilderPostRequestConfiguration>? requestConfiguration = default) {
#nullable restore
#else
public RequestInformation ToPostRequestInformation(Action<ApplyDecisionsRequestBuilderPostRequestConfiguration> requestConfiguration = default) {
#endif
var requestInfo = new RequestInformation {
HttpMethod = Method.POST,
UrlTemplate = UrlTemplate,
PathParameters = PathParameters,
};
if (requestConfiguration != null) {
var requestConfig = new ApplyDecisionsRequestBuilderPostRequestConfiguration();
requestConfiguration.Invoke(requestConfig);
requestInfo.AddRequestOptions(requestConfig.Options);
requestInfo.AddHeaders(requestConfig.Headers);
}
return requestInfo;
}
/// <summary>
/// Configuration for the request such as headers, query parameters, and middleware options.
/// </summary>
public class ApplyDecisionsRequestBuilderPostRequestConfiguration {
/// <summary>Request headers</summary>
public RequestHeaders Headers { get; set; }
/// <summary>Request options</summary>
public IList<IRequestOption> Options { get; set; }
/// <summary>
/// Instantiates a new applyDecisionsRequestBuilderPostRequestConfiguration and sets the default values.
/// </summary>
public ApplyDecisionsRequestBuilderPostRequestConfiguration() {
Options = new List<IRequestOption>();
Headers = new RequestHeaders();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.ApplyDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.Decisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.MicrosoftGraphApplyDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.MicrosoftGraphResetDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.MicrosoftGraphSendReminder;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.MicrosoftGraphStop;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.MyDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.ResetDecisions;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.Reviewers;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.SendReminder;
using Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item.Stop;
using Microsoft.Graph.Beta.Models;
using Microsoft.Graph.Beta.Models.ODataErrors;
using Microsoft.Kiota.Abstractions;
Expand All @@ -20,26 +20,14 @@ namespace Microsoft.Graph.Beta.AccessReviews.Item.Instances.Item {
/// Provides operations to manage the instances property of the microsoft.graph.accessReview entity.
/// </summary>
public class AccessReviewItemRequestBuilder {
/// <summary>Provides operations to call the applyDecisions method.</summary>
public ApplyDecisionsRequestBuilder ApplyDecisions { get =>
new ApplyDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.</summary>
public DecisionsRequestBuilder Decisions { get =>
new DecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the applyDecisions method.</summary>
public MicrosoftGraphApplyDecisionsRequestBuilder MicrosoftGraphApplyDecisions { get =>
new MicrosoftGraphApplyDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the resetDecisions method.</summary>
public MicrosoftGraphResetDecisionsRequestBuilder MicrosoftGraphResetDecisions { get =>
new MicrosoftGraphResetDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the sendReminder method.</summary>
public MicrosoftGraphSendReminderRequestBuilder MicrosoftGraphSendReminder { get =>
new MicrosoftGraphSendReminderRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the stop method.</summary>
public MicrosoftGraphStopRequestBuilder MicrosoftGraphStop { get =>
new MicrosoftGraphStopRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.</summary>
public MyDecisionsRequestBuilder MyDecisions { get =>
new MyDecisionsRequestBuilder(PathParameters, RequestAdapter);
Expand All @@ -48,10 +36,22 @@ public class AccessReviewItemRequestBuilder {
private Dictionary<string, object> PathParameters { get; set; }
/// <summary>The request adapter to use to execute the requests.</summary>
private IRequestAdapter RequestAdapter { get; set; }
/// <summary>Provides operations to call the resetDecisions method.</summary>
public ResetDecisionsRequestBuilder ResetDecisions { get =>
new ResetDecisionsRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.</summary>
public ReviewersRequestBuilder Reviewers { get =>
new ReviewersRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the sendReminder method.</summary>
public SendReminderRequestBuilder SendReminder { get =>
new SendReminderRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Provides operations to call the stop method.</summary>
public StopRequestBuilder Stop { get =>
new StopRequestBuilder(PathParameters, RequestAdapter);
}
/// <summary>Url template to use to build the URL for the current request builder</summary>
private string UrlTemplate { get; set; }
/// <summary>
Expand Down
Loading

0 comments on commit 8ab8ac2

Please sign in to comment.