accessreviewdefinitioninstancedecisioninstance

package
v0.20241111.1164443 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := accessreviewdefinitioninstancedecisioninstance.NewAccessReviewDefinitionInstanceDecisionInstanceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendations

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

payload := accessreviewdefinitioninstancedecisioninstance.CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.DeleteAccessReviewDefinitionInstanceDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.GetAccessReviewDefinitionInstanceDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.ResetAccessReviewDefinitionInstanceDecisionInstanceDecisions

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.SendAccessReviewDefinitionInstanceDecisionInstanceReminder

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.StopAccessReviewDefinitionInstanceDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisions

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceClient.UpdateAccessReviewDefinitionInstanceDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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


read, err := client.UpdateAccessReviewDefinitionInstanceDecisionInstance(ctx, id, payload, accessreviewdefinitioninstancedecisioninstance.DefaultUpdateAccessReviewDefinitionInstanceDecisionInstanceOperationOptions())
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 AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendationsOperationOptions

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

func (AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendationsOperationOptions) ToHeaders

func (AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendationsOperationOptions) ToOData

func (AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendationsOperationOptions) ToQuery

type AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendationsOperationResponse

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

type AccessReviewDefinitionInstanceDecisionInstanceClient

type AccessReviewDefinitionInstanceDecisionInstanceClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDefinitionInstanceDecisionInstanceClientWithBaseURI

func NewAccessReviewDefinitionInstanceDecisionInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDefinitionInstanceDecisionInstanceClient, error)

func (AccessReviewDefinitionInstanceDecisionInstanceClient) AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendations

AcceptAccessReviewDefinitionInstanceDecisionInstanceRecommendations - 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 (AccessReviewDefinitionInstanceDecisionInstanceClient) CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecision

CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecision - 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 (AccessReviewDefinitionInstanceDecisionInstanceClient) CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecision

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

func (AccessReviewDefinitionInstanceDecisionInstanceClient) DeleteAccessReviewDefinitionInstanceDecisionInstance

DeleteAccessReviewDefinitionInstanceDecisionInstance - Delete navigation property instance for identityGovernance

func (AccessReviewDefinitionInstanceDecisionInstanceClient) GetAccessReviewDefinitionInstanceDecisionInstance

GetAccessReviewDefinitionInstanceDecisionInstance - 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 (AccessReviewDefinitionInstanceDecisionInstanceClient) ResetAccessReviewDefinitionInstanceDecisionInstanceDecisions

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

func (AccessReviewDefinitionInstanceDecisionInstanceClient) SendAccessReviewDefinitionInstanceDecisionInstanceReminder

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

func (AccessReviewDefinitionInstanceDecisionInstanceClient) StopAccessReviewDefinitionInstanceDecisionInstance

StopAccessReviewDefinitionInstanceDecisionInstance - 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 (AccessReviewDefinitionInstanceDecisionInstanceClient) StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisions

StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisions - Invoke action stopApplyDecisions

func (AccessReviewDefinitionInstanceDecisionInstanceClient) UpdateAccessReviewDefinitionInstanceDecisionInstance

UpdateAccessReviewDefinitionInstanceDecisionInstance - Update the navigation property instance in identityGovernance

type CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionRequest

type CreateAccessReviewDefinitionInstanceDecisionInstanceBatchRecordDecisionRequest 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 DeleteAccessReviewDefinitionInstanceDecisionInstanceOperationOptions

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

func (DeleteAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToHeaders

func (DeleteAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToOData

func (DeleteAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToQuery

type DeleteAccessReviewDefinitionInstanceDecisionInstanceOperationResponse

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

type GetAccessReviewDefinitionInstanceDecisionInstanceOperationOptions

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

func (GetAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceDecisionInstanceOperationResponse

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

type ResetAccessReviewDefinitionInstanceDecisionInstanceDecisionsOperationOptions

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

func (ResetAccessReviewDefinitionInstanceDecisionInstanceDecisionsOperationOptions) ToHeaders

func (ResetAccessReviewDefinitionInstanceDecisionInstanceDecisionsOperationOptions) ToOData

func (ResetAccessReviewDefinitionInstanceDecisionInstanceDecisionsOperationOptions) ToQuery

type ResetAccessReviewDefinitionInstanceDecisionInstanceDecisionsOperationResponse

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

type SendAccessReviewDefinitionInstanceDecisionInstanceReminderOperationOptions

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

func (SendAccessReviewDefinitionInstanceDecisionInstanceReminderOperationOptions) ToHeaders

func (SendAccessReviewDefinitionInstanceDecisionInstanceReminderOperationOptions) ToOData

func (SendAccessReviewDefinitionInstanceDecisionInstanceReminderOperationOptions) ToQuery

type SendAccessReviewDefinitionInstanceDecisionInstanceReminderOperationResponse

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

type StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionsOperationOptions

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

func (StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionsOperationOptions) ToHeaders

func (StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionsOperationOptions) ToOData

func (StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionsOperationOptions) ToQuery

type StopAccessReviewDefinitionInstanceDecisionInstanceApplyDecisionsOperationResponse

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

type StopAccessReviewDefinitionInstanceDecisionInstanceOperationOptions

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

func (StopAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToHeaders

func (StopAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToOData

func (StopAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToQuery

type StopAccessReviewDefinitionInstanceDecisionInstanceOperationResponse

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

type UpdateAccessReviewDefinitionInstanceDecisionInstanceOperationOptions

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

func (UpdateAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToHeaders

func (UpdateAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToOData

func (UpdateAccessReviewDefinitionInstanceDecisionInstanceOperationOptions) ToQuery

type UpdateAccessReviewDefinitionInstanceDecisionInstanceOperationResponse

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