Skip to content

Commit

Permalink
Generated beta models and request builders (#411)
Browse files Browse the repository at this point in the history
* Update generated files with build 147067

* Update changelog

---------

Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com>
Co-authored-by: rkodev <43806892+rkodev@users.noreply.github.com>
  • Loading branch information
3 people committed May 8, 2024
1 parent fc7c088 commit 495e6e3
Show file tree
Hide file tree
Showing 1,778 changed files with 32,931 additions and 7,442 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [0.102.0]- 2024-05-08

### Changed

- Weekly generation.

## [0.101.0]- 2024-04-30

### Changed
Expand Down
9 changes: 6 additions & 3 deletions accessreviews/item_decisions_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type ItemDecisionsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// ItemDecisionsRequestBuilderGetQueryParameters the collection of decisions for this access review.
// ItemDecisionsRequestBuilderGetQueryParameters 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.
type ItemDecisionsRequestBuilderGetQueryParameters struct {
// Include count of items
Count *bool `uriparametername:"%24count"`
Expand Down Expand Up @@ -76,9 +76,12 @@ func NewItemDecisionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee
func (m *ItemDecisionsRequestBuilder) Count()(*ItemDecisionsCountRequestBuilder) {
return NewItemDecisionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Get the collection of decisions for this access review.
// Get 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.
// returns a AccessReviewDecisionCollectionResponseable when successful
// 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-listdecisions?view=graph-rest-beta
func (m *ItemDecisionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemDecisionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewDecisionCollectionResponseable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -116,7 +119,7 @@ func (m *ItemDecisionsRequestBuilder) Post(ctx context.Context, body ie233ee762e
}
return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewDecisionable), nil
}
// ToGetRequestInformation the collection of decisions for this access review.
// ToGetRequestInformation 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.
// returns a *RequestInformation when successful
func (m *ItemDecisionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemDecisionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ func NewItemInstancesItemApplyDecisionsRequestBuilder(rawUrl string, requestAdap
}
// 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 *ItemInstancesItemApplyDecisionsRequestBuilder) Post(ctx context.Context, requestConfiguration *ItemInstancesItemApplyDecisionsRequestBuilderPostRequestConfiguration)(error) {
requestInfo, err := m.ToPostRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down
9 changes: 6 additions & 3 deletions accessreviews/item_my_decisions_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type ItemMyDecisionsRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// ItemMyDecisionsRequestBuilderGetQueryParameters the collection of decisions for the caller, if the caller is a reviewer.
// ItemMyDecisionsRequestBuilderGetQueryParameters in the Microsoft Entra access reviews feature, retrieve the decisions of an accessReview object for the calling user as reviewer.
type ItemMyDecisionsRequestBuilderGetQueryParameters struct {
// Include count of items
Count *bool `uriparametername:"%24count"`
Expand Down Expand Up @@ -76,9 +76,12 @@ func NewItemMyDecisionsRequestBuilder(rawUrl string, requestAdapter i2ae4187f7da
func (m *ItemMyDecisionsRequestBuilder) Count()(*ItemMyDecisionsCountRequestBuilder) {
return NewItemMyDecisionsCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Get the collection of decisions for the caller, if the caller is a reviewer.
// Get in the Microsoft Entra access reviews feature, retrieve the decisions of an accessReview object for the calling user as reviewer.
// returns a AccessReviewDecisionCollectionResponseable when successful
// 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-listmydecisions?view=graph-rest-beta
func (m *ItemMyDecisionsRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemMyDecisionsRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewDecisionCollectionResponseable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -116,7 +119,7 @@ func (m *ItemMyDecisionsRequestBuilder) Post(ctx context.Context, body ie233ee76
}
return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewDecisionable), nil
}
// ToGetRequestInformation the collection of decisions for the caller, if the caller is a reviewer.
// ToGetRequestInformation in the Microsoft Entra access reviews feature, retrieve the decisions of an accessReview object for the calling user as reviewer.
// returns a *RequestInformation when successful
func (m *ItemMyDecisionsRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemMyDecisionsRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ func NewItemReviewersAccessReviewReviewerItemRequestBuilder(rawUrl string, reque
urlParams["request-raw-url"] = rawUrl
return NewItemReviewersAccessReviewReviewerItemRequestBuilderInternal(urlParams, requestAdapter)
}
// Delete delete navigation property reviewers for accessReviews
// Delete in the Microsoft Entra access reviews feature, update an existing accessReview object to remove a user as a reviewer. This operation is only permitted for an access review that isn't yet completed, and only for an access review where the reviewers are explicitly specified. This operation isn't permitted for an access review in which users review their own access, and not intended for an access review in which the group owners are assigned as the reviewers.
// 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-removereviewer?view=graph-rest-beta
func (m *ItemReviewersAccessReviewReviewerItemRequestBuilder) Delete(ctx context.Context, requestConfiguration *ItemReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(error) {
requestInfo, err := m.ToDeleteRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand Down Expand Up @@ -110,7 +113,7 @@ func (m *ItemReviewersAccessReviewReviewerItemRequestBuilder) Patch(ctx context.
}
return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil
}
// ToDeleteRequestInformation delete navigation property reviewers for accessReviews
// ToDeleteRequestInformation in the Microsoft Entra access reviews feature, update an existing accessReview object to remove a user as a reviewer. This operation is only permitted for an access review that isn't yet completed, and only for an access review where the reviewers are explicitly specified. This operation isn't permitted for an access review in which users review their own access, and not intended for an access review in which the group owners are assigned as the reviewers.
// returns a *RequestInformation when successful
func (m *ItemReviewersAccessReviewReviewerItemRequestBuilder) ToDeleteRequestInformation(ctx context.Context, requestConfiguration *ItemReviewersAccessReviewReviewerItemRequestBuilderDeleteRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.DELETE, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down
16 changes: 11 additions & 5 deletions accessreviews/item_reviewers_request_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
type ItemReviewersRequestBuilder struct {
i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.BaseRequestBuilder
}
// ItemReviewersRequestBuilderGetQueryParameters the collection of reviewers for an access review, if access review reviewerType is of type delegated.
// ItemReviewersRequestBuilderGetQueryParameters in the Microsoft Entra access reviews feature, retrieve the reviewers of an accessReview object.
type ItemReviewersRequestBuilderGetQueryParameters struct {
// Include count of items
Count *bool `uriparametername:"%24count"`
Expand Down Expand Up @@ -76,9 +76,12 @@ func NewItemReviewersRequestBuilder(rawUrl string, requestAdapter i2ae4187f7daee
func (m *ItemReviewersRequestBuilder) Count()(*ItemReviewersCountRequestBuilder) {
return NewItemReviewersCountRequestBuilderInternal(m.BaseRequestBuilder.PathParameters, m.BaseRequestBuilder.RequestAdapter)
}
// Get the collection of reviewers for an access review, if access review reviewerType is of type delegated.
// Get in the Microsoft Entra access reviews feature, retrieve the reviewers of an accessReview object.
// returns a AccessReviewReviewerCollectionResponseable when successful
// 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-listreviewers?view=graph-rest-beta
func (m *ItemReviewersRequestBuilder) Get(ctx context.Context, requestConfiguration *ItemReviewersRequestBuilderGetRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable, error) {
requestInfo, err := m.ToGetRequestInformation(ctx, requestConfiguration);
if err != nil {
Expand All @@ -96,9 +99,12 @@ func (m *ItemReviewersRequestBuilder) Get(ctx context.Context, requestConfigurat
}
return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerCollectionResponseable), nil
}
// Post create new navigation property to reviewers for accessReviews
// Post in the Microsoft Entra access reviews feature, update an existing accessReview object to add another user as a reviewer. This operation is only permitted for an access review that isn't yet completed, and only for an access review where the reviewers are explicitly specified. This operation isn't permitted for an access review in which users review their own access, and not intended for an access review in which the group owners are assigned as the reviewers.
// returns a AccessReviewReviewerable when successful
// 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-addreviewer?view=graph-rest-beta
func (m *ItemReviewersRequestBuilder) Post(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemReviewersRequestBuilderPostRequestConfiguration)(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, error) {
requestInfo, err := m.ToPostRequestInformation(ctx, body, requestConfiguration);
if err != nil {
Expand All @@ -116,7 +122,7 @@ func (m *ItemReviewersRequestBuilder) Post(ctx context.Context, body ie233ee762e
}
return res.(ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable), nil
}
// ToGetRequestInformation the collection of reviewers for an access review, if access review reviewerType is of type delegated.
// ToGetRequestInformation in the Microsoft Entra access reviews feature, retrieve the reviewers of an accessReview object.
// returns a *RequestInformation when successful
func (m *ItemReviewersRequestBuilder) ToGetRequestInformation(ctx context.Context, requestConfiguration *ItemReviewersRequestBuilderGetRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.GET, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand All @@ -130,7 +136,7 @@ func (m *ItemReviewersRequestBuilder) ToGetRequestInformation(ctx context.Contex
requestInfo.Headers.TryAdd("Accept", "application/json")
return requestInfo, nil
}
// ToPostRequestInformation create new navigation property to reviewers for accessReviews
// ToPostRequestInformation in the Microsoft Entra access reviews feature, update an existing accessReview object to add another user as a reviewer. This operation is only permitted for an access review that isn't yet completed, and only for an access review where the reviewers are explicitly specified. This operation isn't permitted for an access review in which users review their own access, and not intended for an access review in which the group owners are assigned as the reviewers.
// returns a *RequestInformation when successful
func (m *ItemReviewersRequestBuilder) ToPostRequestInformation(ctx context.Context, body ie233ee762e29b4ba6970aa2a2efce4b7fde11697ca9ea81099d0f8269309c1be.AccessReviewReviewerable, requestConfiguration *ItemReviewersRequestBuilderPostRequestConfiguration)(*i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.RequestInformation, error) {
requestInfo := i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.NewRequestInformationWithMethodAndUrlTemplateAndPathParameters(i2ae4187f7daee263371cb1c977df639813ab50ffa529013b7437480d1ec0158f.POST, m.BaseRequestBuilder.UrlTemplate, m.BaseRequestBuilder.PathParameters)
Expand Down

0 comments on commit 495e6e3

Please sign in to comment.