accessreviewdefinitioninstancestagedecisioninstance

package
v0.20241126.2320 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: 0

README

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

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

Client Initialization

client := accessreviewdefinitioninstancestagedecisioninstance.NewAccessReviewDefinitionInstanceStageDecisionInstanceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendations

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

payload := accessreviewdefinitioninstancestagedecisioninstance.CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.DeleteAccessReviewDefinitionInstanceStageDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.GetAccessReviewDefinitionInstanceStageDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.ResetAccessReviewDefinitionInstanceStageDecisionInstanceDecisions

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.SendAccessReviewDefinitionInstanceStageDecisionInstanceReminder

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.StopAccessReviewDefinitionInstanceStageDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisions

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceClient.UpdateAccessReviewDefinitionInstanceStageDecisionInstance

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecisioninstance.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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


read, err := client.UpdateAccessReviewDefinitionInstanceStageDecisionInstance(ctx, id, payload, accessreviewdefinitioninstancestagedecisioninstance.DefaultUpdateAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions())
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 AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendationsOperationOptions

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

func (AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendationsOperationOptions) ToHeaders

func (AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendationsOperationOptions) ToOData

func (AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendationsOperationOptions) ToQuery

type AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendationsOperationResponse

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

type AccessReviewDefinitionInstanceStageDecisionInstanceClient

type AccessReviewDefinitionInstanceStageDecisionInstanceClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDefinitionInstanceStageDecisionInstanceClientWithBaseURI

func NewAccessReviewDefinitionInstanceStageDecisionInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDefinitionInstanceStageDecisionInstanceClient, error)

func (AccessReviewDefinitionInstanceStageDecisionInstanceClient) AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendations

AcceptAccessReviewDefinitionInstanceStageDecisionInstanceRecommendations - 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 (AccessReviewDefinitionInstanceStageDecisionInstanceClient) CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecision

CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecision - 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 (AccessReviewDefinitionInstanceStageDecisionInstanceClient) CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecision

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

func (AccessReviewDefinitionInstanceStageDecisionInstanceClient) DeleteAccessReviewDefinitionInstanceStageDecisionInstance

DeleteAccessReviewDefinitionInstanceStageDecisionInstance - Delete navigation property instance for identityGovernance

func (AccessReviewDefinitionInstanceStageDecisionInstanceClient) GetAccessReviewDefinitionInstanceStageDecisionInstance

GetAccessReviewDefinitionInstanceStageDecisionInstance - 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 (AccessReviewDefinitionInstanceStageDecisionInstanceClient) ResetAccessReviewDefinitionInstanceStageDecisionInstanceDecisions

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

func (AccessReviewDefinitionInstanceStageDecisionInstanceClient) SendAccessReviewDefinitionInstanceStageDecisionInstanceReminder

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

func (AccessReviewDefinitionInstanceStageDecisionInstanceClient) StopAccessReviewDefinitionInstanceStageDecisionInstance

StopAccessReviewDefinitionInstanceStageDecisionInstance - 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 (AccessReviewDefinitionInstanceStageDecisionInstanceClient) StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisions

StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisions - Invoke action stopApplyDecisions

func (AccessReviewDefinitionInstanceStageDecisionInstanceClient) UpdateAccessReviewDefinitionInstanceStageDecisionInstance

UpdateAccessReviewDefinitionInstanceStageDecisionInstance - Update the navigation property instance in identityGovernance

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionRequest

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceBatchRecordDecisionRequest 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 DeleteAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions

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

func (DeleteAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToHeaders

func (DeleteAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToOData

func (DeleteAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToQuery

type DeleteAccessReviewDefinitionInstanceStageDecisionInstanceOperationResponse

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

type GetAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions

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

func (GetAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceStageDecisionInstanceOperationResponse

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

type ResetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions

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

func (ResetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions) ToHeaders

func (ResetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions) ToOData

func (ResetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions) ToQuery

type ResetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationResponse

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

type SendAccessReviewDefinitionInstanceStageDecisionInstanceReminderOperationOptions

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

func (SendAccessReviewDefinitionInstanceStageDecisionInstanceReminderOperationOptions) ToHeaders

func (SendAccessReviewDefinitionInstanceStageDecisionInstanceReminderOperationOptions) ToOData

func (SendAccessReviewDefinitionInstanceStageDecisionInstanceReminderOperationOptions) ToQuery

type SendAccessReviewDefinitionInstanceStageDecisionInstanceReminderOperationResponse

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

type StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionsOperationOptions

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

func (StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionsOperationOptions) ToHeaders

func (StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionsOperationOptions) ToOData

func (StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionsOperationOptions) ToQuery

type StopAccessReviewDefinitionInstanceStageDecisionInstanceApplyDecisionsOperationResponse

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

type StopAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions

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

func (StopAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToHeaders

func (StopAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToOData

func (StopAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToQuery

type StopAccessReviewDefinitionInstanceStageDecisionInstanceOperationResponse

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

type UpdateAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions

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

func (UpdateAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToHeaders

func (UpdateAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToOData

func (UpdateAccessReviewDefinitionInstanceStageDecisionInstanceOperationOptions) ToQuery

type UpdateAccessReviewDefinitionInstanceStageDecisionInstanceOperationResponse

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