Skip to content

Commit

Permalink
feat(generation): update request builders and models (#436)
Browse files Browse the repository at this point in the history
Update generated files with build 155730

Co-authored-by: Microsoft Graph DevX Tooling <[email protected]>
  • Loading branch information
andrueastman and Microsoft Graph DevX Tooling authored Jul 15, 2024
1 parent 1837b5f commit 2fb97be
Show file tree
Hide file tree
Showing 35,133 changed files with 1,956,333 additions and 1,955,030 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
24 changes: 12 additions & 12 deletions accessreviews/access_review_item_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ type AccessReviewItemRequestBuilderPatchRequestConfiguration struct {
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// ApplyDecisions provides operations to call the applyDecisions method.
// returns a *ItemApplydecisionsApplyDecisionsRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) ApplyDecisions()(*ItemApplydecisionsApplyDecisionsRequestBuilder) {
return NewItemApplydecisionsApplyDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
// returns a *ItemApplyDecisionsRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) ApplyDecisions()(*ItemApplyDecisionsRequestBuilder) {
return NewItemApplyDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// NewAccessReviewItemRequestBuilderInternal instantiates a new AccessReviewItemRequestBuilder and sets the default values.
func NewAccessReviewItemRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*AccessReviewItemRequestBuilder) {
Expand Down Expand Up @@ -112,9 +112,9 @@ func (m *AccessReviewItemRequestBuilder) Instances()(*ItemInstancesRequestBuilde
return NewItemInstancesRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// MyDecisions provides operations to manage the myDecisions property of the microsoft.graph.accessReview entity.
// returns a *ItemMydecisionsMyDecisionsRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) MyDecisions()(*ItemMydecisionsMyDecisionsRequestBuilder) {
return NewItemMydecisionsMyDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
// returns a *ItemMyDecisionsRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) MyDecisions()(*ItemMyDecisionsRequestBuilder) {
return NewItemMyDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Patch in the Microsoft Entra access reviews feature, update an existing accessReview object to change one or more of its properties. This API is not intended to change the reviewers or decisions of a review. To change the reviewers, use the addReviewer or removeReviewer APIs. To stop an already-started one-time review, or an already-started instance of a recurring review, early, use the stop API. To apply the decisions to the target group or app access rights, use the apply API.
// returns a AccessReviewable when successful
Expand All @@ -140,19 +140,19 @@ func (m *AccessReviewItemRequestBuilder) Patch(ctx context.Context, body ie233ee
return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewable), nil
}
// ResetDecisions provides operations to call the resetDecisions method.
// returns a *ItemResetdecisionsResetDecisionsRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) ResetDecisions()(*ItemResetdecisionsResetDecisionsRequestBuilder) {
return NewItemResetdecisionsResetDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
// returns a *ItemResetDecisionsRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) ResetDecisions()(*ItemResetDecisionsRequestBuilder) {
return NewItemResetDecisionsRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Reviewers provides operations to manage the reviewers property of the microsoft.graph.accessReview entity.
// returns a *ItemReviewersRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) Reviewers()(*ItemReviewersRequestBuilder) {
return NewItemReviewersRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// SendReminder provides operations to call the sendReminder method.
// returns a *ItemSendreminderSendReminderRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) SendReminder()(*ItemSendreminderSendReminderRequestBuilder) {
return NewItemSendreminderSendReminderRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
// returns a *ItemSendReminderRequestBuilder when successful
func (m *AccessReviewItemRequestBuilder) SendReminder()(*ItemSendReminderRequestBuilder) {
return NewItemSendReminderRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Stop provides operations to call the stop method.
// returns a *ItemStopRequestBuilder when successful
Expand Down
67 changes: 67 additions & 0 deletions accessreviews/item_apply_decisions_request_builder.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
package accessreviews

import (
"context"
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f "github.com/microsoft/kiota-abstractions-go"
i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459 "github.com/microsoftgraph/msgraph-beta-sdk-go/models/odataerrors"
)

// ItemApplyDecisionsRequestBuilder provides operations to call the applyDecisions method.
type ItemApplyDecisionsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// ItemApplyDecisionsRequestBuilderPostRequestConfiguration configuration for the request such as headers, query parameters, and middleware options.
type ItemApplyDecisionsRequestBuilderPostRequestConfiguration struct {
// Request headers
Headers *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestHeaders
// Request options
Options []i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestOption
}
// NewItemApplyDecisionsRequestBuilderInternal instantiates a new ItemApplyDecisionsRequestBuilder and sets the default values.
func NewItemApplyDecisionsRequestBuilderInternal(pathParameters map[string]string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemApplyDecisionsRequestBuilder) {
m := &ItemApplyDecisionsRequestBuilder{
BaseRequestBuilder: *i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewBaseRequestBuilder(requestAdapter, "{+baseurl}/accessReviews/{accessReview%2Did}/applyDecisions", pathParameters),
}
return m
}
// NewItemApplyDecisionsRequestBuilder instantiates a new ItemApplyDecisionsRequestBuilder and sets the default values.
func NewItemApplyDecisionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestAdapter)(*ItemApplyDecisionsRequestBuilder) {
urlParams := make(map[string]string)
urlParams["request-raw-url"] = rawUrl
return NewItemApplyDecisionsRequestBuilderInternal(urlParams, requestAdapter)
}
// Post 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'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'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'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.
// returns a ODataError error when the service returns a 4XX or 5XX status code
// [Find more info here]
//
// [Find more info here]: https://learn.microsoft.com/graph/api/accessreview-apply?view=graph-rest-beta
func (m *ItemApplyDecisionsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemApplyDecisionsRequestBuilderPostRequestConfiguration)(error) {
requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration);
if err != nil {
return err
}
errorMapping := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.ErrorMappings {
"XXX": i20a3050780ee0b0cde0a884a4f35429a20d60067e3bcda382ec5400079147459.CreateODataErrorFromDiscriminatorValue,
}
err = m.BaseRequestBuilder.RequestAdapter.SendNoContent(ctx, requestInfo, errorMapping)
if err != nil {
return err
}
return nil
}
// ToPostRequestInformation 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'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'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'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.
// returns a *RequestInformation when successful
func (m *ItemApplyDecisionsRequestBuilder) ToPostRequestInformation(ctx context.Context, requestConfiguration *ItemApplyDecisionsRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
if requestConfiguration != nil {
requestInfo.Headers.AddAll(requestConfiguration.Headers)
requestInfo.AddRequestOptions(requestConfiguration.Options)
}
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// WithUrl returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
// returns a *ItemApplyDecisionsRequestBuilder when successful
func (m *ItemApplyDecisionsRequestBuilder) WithUrl(rawUrl string)(*ItemApplyDecisionsRequestBuilder) {
return NewItemApplyDecisionsRequestBuilder(rawUrl, m.BaseRequestBuilder.RequestAdapter);
}

This file was deleted.

Loading

0 comments on commit 2fb97be

Please sign in to comment.