accessreviewdecision

package
v0.20241104.1140654 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/accessreviewdecision Documentation

The accessreviewdecision SDK allows for interaction with Microsoft Graph identitygovernance (API Version beta).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/accessreviewdecision"

Client Initialization

client := accessreviewdecision.NewAccessReviewDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDecisionClient.CreateAccessReviewDecision

ctx := context.TODO()

payload := accessreviewdecision.AccessReviewInstanceDecisionItem{
	// ...
}


read, err := client.CreateAccessReviewDecision(ctx, payload, accessreviewdecision.DefaultCreateAccessReviewDecisionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccessReviewDecisionClient.CreateAccessReviewDecisionRecordAllDecision

ctx := context.TODO()

payload := accessreviewdecision.CreateAccessReviewDecisionRecordAllDecisionRequest{
	// ...
}


read, err := client.CreateAccessReviewDecisionRecordAllDecision(ctx, payload, accessreviewdecision.DefaultCreateAccessReviewDecisionRecordAllDecisionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccessReviewDecisionClient.DeleteAccessReviewDecision

ctx := context.TODO()
id := accessreviewdecision.NewIdentityGovernanceAccessReviewDecisionID("accessReviewInstanceDecisionItemId")

read, err := client.DeleteAccessReviewDecision(ctx, id, accessreviewdecision.DefaultDeleteAccessReviewDecisionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccessReviewDecisionClient.GetAccessReviewDecision

ctx := context.TODO()
id := accessreviewdecision.NewIdentityGovernanceAccessReviewDecisionID("accessReviewInstanceDecisionItemId")

read, err := client.GetAccessReviewDecision(ctx, id, accessreviewdecision.DefaultGetAccessReviewDecisionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccessReviewDecisionClient.GetAccessReviewDecisionsCount

ctx := context.TODO()


read, err := client.GetAccessReviewDecisionsCount(ctx, accessreviewdecision.DefaultGetAccessReviewDecisionsCountOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: AccessReviewDecisionClient.ListAccessReviewDecisions

ctx := context.TODO()


// alternatively `client.ListAccessReviewDecisions(ctx, accessreviewdecision.DefaultListAccessReviewDecisionsOperationOptions())` can be used to do batched pagination
items, err := client.ListAccessReviewDecisionsComplete(ctx, accessreviewdecision.DefaultListAccessReviewDecisionsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: AccessReviewDecisionClient.UpdateAccessReviewDecision

ctx := context.TODO()
id := accessreviewdecision.NewIdentityGovernanceAccessReviewDecisionID("accessReviewInstanceDecisionItemId")

payload := accessreviewdecision.AccessReviewInstanceDecisionItem{
	// ...
}


read, err := client.UpdateAccessReviewDecision(ctx, id, payload, accessreviewdecision.DefaultUpdateAccessReviewDecisionOperationOptions())
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessReviewDecisionClient

type AccessReviewDecisionClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDecisionClientWithBaseURI

func NewAccessReviewDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDecisionClient, error)

func (AccessReviewDecisionClient) CreateAccessReviewDecision

CreateAccessReviewDecision - Create new navigation property to decisions for identityGovernance

func (AccessReviewDecisionClient) CreateAccessReviewDecisionRecordAllDecision

CreateAccessReviewDecisionRecordAllDecision - Invoke action recordAllDecisions. As a reviewer of an access review, record a decision for an accessReviewInstanceDecisionItem that is assigned to you and that matches the principal or resource IDs specified. If no IDs are specified, the decisions will apply to every accessReviewInstanceDecisionItem for which you are the reviewer.

func (AccessReviewDecisionClient) DeleteAccessReviewDecision

DeleteAccessReviewDecision - Delete navigation property decisions for identityGovernance

func (AccessReviewDecisionClient) GetAccessReviewDecision

GetAccessReviewDecision - Get decisions from identityGovernance. Represents a Microsoft Entra access review decision on an instance of a review.

func (AccessReviewDecisionClient) GetAccessReviewDecisionsCount

GetAccessReviewDecisionsCount - Get the number of the resource

func (AccessReviewDecisionClient) ListAccessReviewDecisions

ListAccessReviewDecisions - Get decisions from identityGovernance. Represents a Microsoft Entra access review decision on an instance of a review.

func (AccessReviewDecisionClient) ListAccessReviewDecisionsComplete

ListAccessReviewDecisionsComplete retrieves all the results into a single object

func (AccessReviewDecisionClient) ListAccessReviewDecisionsCompleteMatchingPredicate

ListAccessReviewDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AccessReviewDecisionClient) UpdateAccessReviewDecision

UpdateAccessReviewDecision - Update the navigation property decisions in identityGovernance

type AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreateAccessReviewDecisionOperationOptions

type CreateAccessReviewDecisionOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultCreateAccessReviewDecisionOperationOptions

func DefaultCreateAccessReviewDecisionOperationOptions() CreateAccessReviewDecisionOperationOptions

func (CreateAccessReviewDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDecisionOperationOptions) ToOData

func (CreateAccessReviewDecisionOperationOptions) ToQuery

type CreateAccessReviewDecisionOperationResponse

type CreateAccessReviewDecisionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AccessReviewInstanceDecisionItem
}

type CreateAccessReviewDecisionRecordAllDecisionOperationOptions

type CreateAccessReviewDecisionRecordAllDecisionOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func (CreateAccessReviewDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDecisionRecordAllDecisionOperationOptions) ToOData

func (CreateAccessReviewDecisionRecordAllDecisionOperationOptions) ToQuery

type CreateAccessReviewDecisionRecordAllDecisionOperationResponse

type CreateAccessReviewDecisionRecordAllDecisionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type CreateAccessReviewDecisionRecordAllDecisionRequest

type CreateAccessReviewDecisionRecordAllDecisionRequest struct {
	Decision      nullable.Type[string] `json:"decision,omitempty"`
	Justification nullable.Type[string] `json:"justification,omitempty"`
	PrincipalId   nullable.Type[string] `json:"principalId,omitempty"`
	ResourceId    nullable.Type[string] `json:"resourceId,omitempty"`
}

type DeleteAccessReviewDecisionOperationOptions

type DeleteAccessReviewDecisionOperationOptions struct {
	IfMatch   *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultDeleteAccessReviewDecisionOperationOptions

func DefaultDeleteAccessReviewDecisionOperationOptions() DeleteAccessReviewDecisionOperationOptions

func (DeleteAccessReviewDecisionOperationOptions) ToHeaders

func (DeleteAccessReviewDecisionOperationOptions) ToOData

func (DeleteAccessReviewDecisionOperationOptions) ToQuery

type DeleteAccessReviewDecisionOperationResponse

type DeleteAccessReviewDecisionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type GetAccessReviewDecisionOperationOptions

type GetAccessReviewDecisionOperationOptions struct {
	Expand    *odata.Expand
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Select    *[]string
}

func DefaultGetAccessReviewDecisionOperationOptions

func DefaultGetAccessReviewDecisionOperationOptions() GetAccessReviewDecisionOperationOptions

func (GetAccessReviewDecisionOperationOptions) ToHeaders

func (GetAccessReviewDecisionOperationOptions) ToOData

func (GetAccessReviewDecisionOperationOptions) ToQuery

type GetAccessReviewDecisionOperationResponse

type GetAccessReviewDecisionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AccessReviewInstanceDecisionItem
}

type GetAccessReviewDecisionsCountOperationOptions

type GetAccessReviewDecisionsCountOperationOptions struct {
	Filter    *string
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
	Search    *string
}

func DefaultGetAccessReviewDecisionsCountOperationOptions

func DefaultGetAccessReviewDecisionsCountOperationOptions() GetAccessReviewDecisionsCountOperationOptions

func (GetAccessReviewDecisionsCountOperationOptions) ToHeaders

func (GetAccessReviewDecisionsCountOperationOptions) ToOData

func (GetAccessReviewDecisionsCountOperationOptions) ToQuery

type GetAccessReviewDecisionsCountOperationResponse

type GetAccessReviewDecisionsCountOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]byte
}

type ListAccessReviewDecisionsCompleteResult

type ListAccessReviewDecisionsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.AccessReviewInstanceDecisionItem
}

type ListAccessReviewDecisionsCustomPager

type ListAccessReviewDecisionsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}
func (p *ListAccessReviewDecisionsCustomPager) NextPageLink() *odata.Link

type ListAccessReviewDecisionsOperationOptions

type ListAccessReviewDecisionsOperationOptions struct {
	Count     *bool
	Expand    *odata.Expand
	Filter    *string
	Metadata  *odata.Metadata
	OrderBy   *odata.OrderBy
	RetryFunc client.RequestRetryFunc
	Search    *string
	Select    *[]string
	Skip      *int64
	Top       *int64
}

func DefaultListAccessReviewDecisionsOperationOptions

func DefaultListAccessReviewDecisionsOperationOptions() ListAccessReviewDecisionsOperationOptions

func (ListAccessReviewDecisionsOperationOptions) ToHeaders

func (ListAccessReviewDecisionsOperationOptions) ToOData

func (ListAccessReviewDecisionsOperationOptions) ToQuery

type ListAccessReviewDecisionsOperationResponse

type ListAccessReviewDecisionsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.AccessReviewInstanceDecisionItem
}

type UpdateAccessReviewDecisionOperationOptions

type UpdateAccessReviewDecisionOperationOptions struct {
	Metadata  *odata.Metadata
	RetryFunc client.RequestRetryFunc
}

func DefaultUpdateAccessReviewDecisionOperationOptions

func DefaultUpdateAccessReviewDecisionOperationOptions() UpdateAccessReviewDecisionOperationOptions

func (UpdateAccessReviewDecisionOperationOptions) ToHeaders

func (UpdateAccessReviewDecisionOperationOptions) ToOData

func (UpdateAccessReviewDecisionOperationOptions) ToQuery

type UpdateAccessReviewDecisionOperationResponse

type UpdateAccessReviewDecisionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL