Skip to content

Commit

Permalink
Merge pull request #65 from microsoftgraph/kiota/beta/pipelinebuild/1…
Browse files Browse the repository at this point in the history
…50887

Generated  models and request builders
  • Loading branch information
rkodev authored Jun 3, 2024
2 parents d6db9d0 + ee0afbd commit 3d36caf
Show file tree
Hide file tree
Showing 25,783 changed files with 570,985 additions and 83,344 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
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviewDecisions {
namespace ApiSdk.AccessReviewDecisions
{
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// </summary>
public class AccessReviewDecisionsRequestBuilder : BaseCliRequestBuilder
public class AccessReviewDecisionsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
Expand Down Expand Up @@ -180,7 +181,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviewDecisions.Count {
namespace ApiSdk.AccessReviewDecisions.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviewDecisions.Item {
namespace ApiSdk.AccessReviewDecisions.Item
{
/// <summary>
/// Provides operations to manage the collection of accessReviewDecision entities.
/// </summary>
public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete entity from accessReviewDecisions
Expand Down
7 changes: 5 additions & 2 deletions src/generated/AccessReviews/AccessReviewsRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews {
namespace ApiSdk.AccessReviews
{
/// <summary>
/// Provides operations to manage the collection of accessReview entities.
/// </summary>
public class AccessReviewsRequestBuilder : BaseCliRequestBuilder
public class AccessReviewsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the collection of accessReview entities.
Expand Down Expand Up @@ -191,7 +192,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand Down
5 changes: 3 additions & 2 deletions src/generated/AccessReviews/Count/CountRequestBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Count {
namespace ApiSdk.AccessReviews.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item {
namespace ApiSdk.AccessReviews.Item
{
/// <summary>
/// Provides operations to manage the collection of accessReview entities.
/// </summary>
public class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
public class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to call the applyDecisions method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item.ApplyDecisions {
namespace ApiSdk.AccessReviews.Item.ApplyDecisions
{
/// <summary>
/// Provides operations to call the applyDecisions method.
/// </summary>
public class ApplyDecisionsRequestBuilder : BaseCliRequestBuilder
public class ApplyDecisionsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// In the Microsoft Entra 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, Microsoft Entra ID 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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item.Decisions.Count {
namespace ApiSdk.AccessReviews.Item.Decisions.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item.Decisions {
namespace ApiSdk.AccessReviews.Item.Decisions
{
/// <summary>
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
/// </summary>
public class DecisionsRequestBuilder : BaseCliRequestBuilder
public class DecisionsRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
Expand Down Expand Up @@ -104,13 +105,14 @@ public Command BuildCreateCommand()
return command;
}
/// <summary>
/// The collection of decisions for this access review.
/// In the Microsoft Entra 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.
/// Find more info here <see href="https://learn.microsoft.com/graph/api/accessreview-listdecisions?view=graph-rest-beta" />
/// </summary>
/// <returns>A <see cref="Command"/></returns>
public Command BuildListCommand()
{
var command = new Command("list");
command.Description = "The collection of decisions for this access review.";
command.Description = "In the Microsoft Entra 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.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/accessreview-listdecisions?view=graph-rest-beta";
var accessReviewIdOption = new Option<string>("--access-review-id", description: "The unique identifier of accessReview") {
};
accessReviewIdOption.IsRequired = true;
Expand Down Expand Up @@ -192,7 +194,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand All @@ -218,7 +222,7 @@ public DecisionsRequestBuilder(string rawUrl) : base("{+baseurl}/accessReviews/{
{
}
/// <summary>
/// The collection of decisions for this access review.
/// In the Microsoft Entra 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>
/// <returns>A <see cref="RequestInformation"/></returns>
/// <param name="requestConfiguration">Configuration for the request such as headers, query parameters, and middleware options.</param>
Expand Down Expand Up @@ -258,7 +262,7 @@ public RequestInformation ToPostRequestInformation(AccessReviewDecision body, Ac
return requestInfo;
}
/// <summary>
/// The collection of decisions for this access review.
/// In the Microsoft Entra 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 @@ -14,11 +14,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item.Decisions.Item {
namespace ApiSdk.AccessReviews.Item.Decisions.Item
{
/// <summary>
/// Provides operations to manage the decisions property of the microsoft.graph.accessReview entity.
/// </summary>
public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
public class AccessReviewDecisionItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Delete navigation property decisions for accessReviews
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item.Instances.Count {
namespace ApiSdk.AccessReviews.Item.Instances.Count
{
/// <summary>
/// Provides operations to count the resources in the collection.
/// </summary>
public class CountRequestBuilder : BaseCliRequestBuilder
public class CountRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Get the number of the resource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item.Instances {
namespace ApiSdk.AccessReviews.Item.Instances
{
/// <summary>
/// Provides operations to manage the instances property of the microsoft.graph.accessReview entity.
/// </summary>
public class InstancesRequestBuilder : BaseCliRequestBuilder
public class InstancesRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to manage the instances property of the microsoft.graph.accessReview entity.
Expand Down Expand Up @@ -200,7 +201,9 @@ public Command BuildListCommand()
var pagingData = new PageLinkData(requestInfo, null, itemName: "value", nextLinkName: "@odata.nextLink");
var pageResponse = await pagingService.GetPagedDataAsync((info, token) => reqAdapter.SendNoContentAsync(info, cancellationToken: token), pagingData, all, cancellationToken);
var response = pageResponse?.Response;
#nullable enable
IOutputFormatter? formatter = null;
#nullable restore
if (pageResponse?.StatusCode >= 200 && pageResponse?.StatusCode < 300) {
formatter = outputFormatterFactory.GetFormatter(output);
response = (response != Stream.Null) ? await outputFilter.FilterOutputAsync(response, query, cancellationToken) : response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@
using System.Threading.Tasks;
using System.Threading;
using System;
namespace ApiSdk.AccessReviews.Item.Instances.Item {
namespace ApiSdk.AccessReviews.Item.Instances.Item
{
/// <summary>
/// Provides operations to manage the instances property of the microsoft.graph.accessReview entity.
/// </summary>
public class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
public class AccessReviewItemRequestBuilder : BaseCliRequestBuilder
{
/// <summary>
/// Provides operations to call the applyDecisions method.
Expand Down
Loading

0 comments on commit 3d36caf

Please sign in to comment.