accessreviewdecisioninstance

package
v0.20241126.1110949 Latest Latest
Warning

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

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

README

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

The accessreviewdecisioninstance 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/accessreviewdecisioninstance"

Client Initialization

client := accessreviewdecisioninstance.NewAccessReviewDecisionInstanceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDecisionInstanceClient.AcceptAccessReviewDecisionInstanceRecommendations

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

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

Example Usage: AccessReviewDecisionInstanceClient.CreateAccessReviewDecisionInstanceApplyDecision

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

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

Example Usage: AccessReviewDecisionInstanceClient.CreateAccessReviewDecisionInstanceBatchRecordDecision

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

payload := accessreviewdecisioninstance.CreateAccessReviewDecisionInstanceBatchRecordDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDecisionInstanceClient.DeleteAccessReviewDecisionInstance

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

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

Example Usage: AccessReviewDecisionInstanceClient.GetAccessReviewDecisionInstance

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

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

Example Usage: AccessReviewDecisionInstanceClient.ResetAccessReviewDecisionInstanceDecisions

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

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

Example Usage: AccessReviewDecisionInstanceClient.SendAccessReviewDecisionInstanceReminder

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

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

Example Usage: AccessReviewDecisionInstanceClient.StopAccessReviewDecisionInstance

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

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

Example Usage: AccessReviewDecisionInstanceClient.StopAccessReviewDecisionInstanceApplyDecisions

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

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

Example Usage: AccessReviewDecisionInstanceClient.UpdateAccessReviewDecisionInstance

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

payload := accessreviewdecisioninstance.AccessReviewInstance{
	// ...
}


read, err := client.UpdateAccessReviewDecisionInstance(ctx, id, payload, accessreviewdecisioninstance.DefaultUpdateAccessReviewDecisionInstanceOperationOptions())
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 AcceptAccessReviewDecisionInstanceRecommendationsOperationOptions

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

func (AcceptAccessReviewDecisionInstanceRecommendationsOperationOptions) ToHeaders

func (AcceptAccessReviewDecisionInstanceRecommendationsOperationOptions) ToOData

func (AcceptAccessReviewDecisionInstanceRecommendationsOperationOptions) ToQuery

type AcceptAccessReviewDecisionInstanceRecommendationsOperationResponse

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

type AccessReviewDecisionInstanceClient

type AccessReviewDecisionInstanceClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDecisionInstanceClientWithBaseURI

func NewAccessReviewDecisionInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDecisionInstanceClient, error)

func (AccessReviewDecisionInstanceClient) AcceptAccessReviewDecisionInstanceRecommendations

AcceptAccessReviewDecisionInstanceRecommendations - Invoke action acceptRecommendations. Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed for an accessReviewInstance object for which the calling user is a reviewer. Recommendations are generated if recommendationsEnabled is true on the accessReviewScheduleDefinition object. If there isn't a recommendation on an accessReviewInstanceDecisionItem object no decision will be recorded.

func (AccessReviewDecisionInstanceClient) CreateAccessReviewDecisionInstanceApplyDecision

CreateAccessReviewDecisionInstanceApplyDecision - Invoke action applyDecisions. Apply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method.

func (AccessReviewDecisionInstanceClient) CreateAccessReviewDecisionInstanceBatchRecordDecision

CreateAccessReviewDecisionInstanceBatchRecordDecision - Invoke action batchRecordDecisions. Enables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither.

func (AccessReviewDecisionInstanceClient) DeleteAccessReviewDecisionInstance

DeleteAccessReviewDecisionInstance - Delete navigation property instance for identityGovernance

func (AccessReviewDecisionInstanceClient) GetAccessReviewDecisionInstance

GetAccessReviewDecisionInstance - Get instance from identityGovernance. There's exactly one accessReviewInstance associated with each decision. The instance is the parent of the decision item, representing the recurrence of the access review the decision is made on.

func (AccessReviewDecisionInstanceClient) ResetAccessReviewDecisionInstanceDecisions

ResetAccessReviewDecisionInstanceDecisions - Invoke action resetDecisions. Resets decisions of all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed.

func (AccessReviewDecisionInstanceClient) SendAccessReviewDecisionInstanceReminder

SendAccessReviewDecisionInstanceReminder - Invoke action sendReminder. Send a reminder to the reviewers of a currently active accessReviewInstance.

func (AccessReviewDecisionInstanceClient) StopAccessReviewDecisionInstance

StopAccessReviewDecisionInstance - Invoke action stop. Stop a currently active accessReviewInstance. After the access review instance stops, the instance status will be Completed, the reviewers can no longer give input, and the access review decisions can be applied. Stopping an instance will not effect future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date.

func (AccessReviewDecisionInstanceClient) StopAccessReviewDecisionInstanceApplyDecisions

StopAccessReviewDecisionInstanceApplyDecisions - Invoke action stopApplyDecisions

func (AccessReviewDecisionInstanceClient) UpdateAccessReviewDecisionInstance

UpdateAccessReviewDecisionInstance - Update the navigation property instance in identityGovernance

type CreateAccessReviewDecisionInstanceApplyDecisionOperationOptions

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

func (CreateAccessReviewDecisionInstanceApplyDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDecisionInstanceApplyDecisionOperationOptions) ToOData

func (CreateAccessReviewDecisionInstanceApplyDecisionOperationOptions) ToQuery

type CreateAccessReviewDecisionInstanceApplyDecisionOperationResponse

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

type CreateAccessReviewDecisionInstanceBatchRecordDecisionOperationOptions

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

func (CreateAccessReviewDecisionInstanceBatchRecordDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDecisionInstanceBatchRecordDecisionOperationOptions) ToOData

func (CreateAccessReviewDecisionInstanceBatchRecordDecisionOperationOptions) ToQuery

type CreateAccessReviewDecisionInstanceBatchRecordDecisionOperationResponse

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

type CreateAccessReviewDecisionInstanceBatchRecordDecisionRequest

type CreateAccessReviewDecisionInstanceBatchRecordDecisionRequest 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 DeleteAccessReviewDecisionInstanceOperationOptions

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

func DefaultDeleteAccessReviewDecisionInstanceOperationOptions

func DefaultDeleteAccessReviewDecisionInstanceOperationOptions() DeleteAccessReviewDecisionInstanceOperationOptions

func (DeleteAccessReviewDecisionInstanceOperationOptions) ToHeaders

func (DeleteAccessReviewDecisionInstanceOperationOptions) ToOData

func (DeleteAccessReviewDecisionInstanceOperationOptions) ToQuery

type DeleteAccessReviewDecisionInstanceOperationResponse

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

type GetAccessReviewDecisionInstanceOperationOptions

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

func DefaultGetAccessReviewDecisionInstanceOperationOptions

func DefaultGetAccessReviewDecisionInstanceOperationOptions() GetAccessReviewDecisionInstanceOperationOptions

func (GetAccessReviewDecisionInstanceOperationOptions) ToHeaders

func (GetAccessReviewDecisionInstanceOperationOptions) ToOData

func (GetAccessReviewDecisionInstanceOperationOptions) ToQuery

type GetAccessReviewDecisionInstanceOperationResponse

type GetAccessReviewDecisionInstanceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.AccessReviewInstance
}

type ResetAccessReviewDecisionInstanceDecisionsOperationOptions

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

func (ResetAccessReviewDecisionInstanceDecisionsOperationOptions) ToHeaders

func (ResetAccessReviewDecisionInstanceDecisionsOperationOptions) ToOData

func (ResetAccessReviewDecisionInstanceDecisionsOperationOptions) ToQuery

type ResetAccessReviewDecisionInstanceDecisionsOperationResponse

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

type SendAccessReviewDecisionInstanceReminderOperationOptions

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

func (SendAccessReviewDecisionInstanceReminderOperationOptions) ToHeaders

func (SendAccessReviewDecisionInstanceReminderOperationOptions) ToOData

func (SendAccessReviewDecisionInstanceReminderOperationOptions) ToQuery

type SendAccessReviewDecisionInstanceReminderOperationResponse

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

type StopAccessReviewDecisionInstanceApplyDecisionsOperationOptions

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

func (StopAccessReviewDecisionInstanceApplyDecisionsOperationOptions) ToHeaders

func (StopAccessReviewDecisionInstanceApplyDecisionsOperationOptions) ToOData

func (StopAccessReviewDecisionInstanceApplyDecisionsOperationOptions) ToQuery

type StopAccessReviewDecisionInstanceApplyDecisionsOperationResponse

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

type StopAccessReviewDecisionInstanceOperationOptions

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

func DefaultStopAccessReviewDecisionInstanceOperationOptions

func DefaultStopAccessReviewDecisionInstanceOperationOptions() StopAccessReviewDecisionInstanceOperationOptions

func (StopAccessReviewDecisionInstanceOperationOptions) ToHeaders

func (StopAccessReviewDecisionInstanceOperationOptions) ToOData

func (StopAccessReviewDecisionInstanceOperationOptions) ToQuery

type StopAccessReviewDecisionInstanceOperationResponse

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

type UpdateAccessReviewDecisionInstanceOperationOptions

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

func DefaultUpdateAccessReviewDecisionInstanceOperationOptions

func DefaultUpdateAccessReviewDecisionInstanceOperationOptions() UpdateAccessReviewDecisionInstanceOperationOptions

func (UpdateAccessReviewDecisionInstanceOperationOptions) ToHeaders

func (UpdateAccessReviewDecisionInstanceOperationOptions) ToOData

func (UpdateAccessReviewDecisionInstanceOperationOptions) ToQuery

type UpdateAccessReviewDecisionInstanceOperationResponse

type UpdateAccessReviewDecisionInstanceOperationResponse 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