pendingaccessreviewinstancedecisioninstance

package
v0.20241025.1143247 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/pendingaccessreviewinstancedecisioninstance Documentation

The pendingaccessreviewinstancedecisioninstance SDK allows for interaction with Microsoft Graph me (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/me/beta/pendingaccessreviewinstancedecisioninstance"

Client Initialization

client := pendingaccessreviewinstancedecisioninstance.NewPendingAccessReviewInstanceDecisionInstanceClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.AcceptPendingAccessReviewInstanceDecisionInstanceRecommendations

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.CreatePendingAccessReviewInstanceDecisionInstanceApplyDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

payload := pendingaccessreviewinstancedecisioninstance.CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionRequest{
	// ...
}


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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.DeletePendingAccessReviewInstanceDecisionInstance

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.GetPendingAccessReviewInstanceDecisionInstance

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.ResetPendingAccessReviewInstanceDecisionInstanceDecisions

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.SendPendingAccessReviewInstanceDecisionInstanceReminder

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.StopPendingAccessReviewInstanceDecisionInstance

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.StopPendingAccessReviewInstanceDecisionInstanceApplyDecisions

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceClient.UpdatePendingAccessReviewInstanceDecisionInstance

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstance.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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


read, err := client.UpdatePendingAccessReviewInstanceDecisionInstance(ctx, id, payload, pendingaccessreviewinstancedecisioninstance.DefaultUpdatePendingAccessReviewInstanceDecisionInstanceOperationOptions())
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 AcceptPendingAccessReviewInstanceDecisionInstanceRecommendationsOperationOptions

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

func (AcceptPendingAccessReviewInstanceDecisionInstanceRecommendationsOperationOptions) ToHeaders

func (AcceptPendingAccessReviewInstanceDecisionInstanceRecommendationsOperationOptions) ToOData

func (AcceptPendingAccessReviewInstanceDecisionInstanceRecommendationsOperationOptions) ToQuery

type AcceptPendingAccessReviewInstanceDecisionInstanceRecommendationsOperationResponse

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

type CreatePendingAccessReviewInstanceDecisionInstanceApplyDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceDecisionInstanceApplyDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceDecisionInstanceApplyDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceDecisionInstanceApplyDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceDecisionInstanceApplyDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionRequest

type CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecisionRequest 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 DeletePendingAccessReviewInstanceDecisionInstanceOperationOptions

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

func (DeletePendingAccessReviewInstanceDecisionInstanceOperationOptions) ToHeaders

func (DeletePendingAccessReviewInstanceDecisionInstanceOperationOptions) ToOData

func (DeletePendingAccessReviewInstanceDecisionInstanceOperationOptions) ToQuery

type DeletePendingAccessReviewInstanceDecisionInstanceOperationResponse

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

type GetPendingAccessReviewInstanceDecisionInstanceOperationOptions

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

func (GetPendingAccessReviewInstanceDecisionInstanceOperationOptions) ToHeaders

func (GetPendingAccessReviewInstanceDecisionInstanceOperationOptions) ToOData

func (GetPendingAccessReviewInstanceDecisionInstanceOperationOptions) ToQuery

type GetPendingAccessReviewInstanceDecisionInstanceOperationResponse

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

type PendingAccessReviewInstanceDecisionInstanceClient

type PendingAccessReviewInstanceDecisionInstanceClient struct {
	Client *msgraph.Client
}

func NewPendingAccessReviewInstanceDecisionInstanceClientWithBaseURI

func NewPendingAccessReviewInstanceDecisionInstanceClientWithBaseURI(sdkApi sdkEnv.Api) (*PendingAccessReviewInstanceDecisionInstanceClient, error)

func (PendingAccessReviewInstanceDecisionInstanceClient) AcceptPendingAccessReviewInstanceDecisionInstanceRecommendations

AcceptPendingAccessReviewInstanceDecisionInstanceRecommendations - 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 (PendingAccessReviewInstanceDecisionInstanceClient) CreatePendingAccessReviewInstanceDecisionInstanceApplyDecision

CreatePendingAccessReviewInstanceDecisionInstanceApplyDecision - 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 (PendingAccessReviewInstanceDecisionInstanceClient) CreatePendingAccessReviewInstanceDecisionInstanceBatchRecordDecision

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

func (PendingAccessReviewInstanceDecisionInstanceClient) DeletePendingAccessReviewInstanceDecisionInstance

DeletePendingAccessReviewInstanceDecisionInstance - Delete navigation property instance for me

func (PendingAccessReviewInstanceDecisionInstanceClient) GetPendingAccessReviewInstanceDecisionInstance

GetPendingAccessReviewInstanceDecisionInstance - Get instance from me. 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 (PendingAccessReviewInstanceDecisionInstanceClient) ResetPendingAccessReviewInstanceDecisionInstanceDecisions

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

func (PendingAccessReviewInstanceDecisionInstanceClient) SendPendingAccessReviewInstanceDecisionInstanceReminder

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

func (PendingAccessReviewInstanceDecisionInstanceClient) StopPendingAccessReviewInstanceDecisionInstance

StopPendingAccessReviewInstanceDecisionInstance - 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 (PendingAccessReviewInstanceDecisionInstanceClient) StopPendingAccessReviewInstanceDecisionInstanceApplyDecisions

StopPendingAccessReviewInstanceDecisionInstanceApplyDecisions - Invoke action stopApplyDecisions

func (PendingAccessReviewInstanceDecisionInstanceClient) UpdatePendingAccessReviewInstanceDecisionInstance

UpdatePendingAccessReviewInstanceDecisionInstance - Update the navigation property instance in me

type ResetPendingAccessReviewInstanceDecisionInstanceDecisionsOperationOptions

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

func (ResetPendingAccessReviewInstanceDecisionInstanceDecisionsOperationOptions) ToHeaders

func (ResetPendingAccessReviewInstanceDecisionInstanceDecisionsOperationOptions) ToOData

func (ResetPendingAccessReviewInstanceDecisionInstanceDecisionsOperationOptions) ToQuery

type ResetPendingAccessReviewInstanceDecisionInstanceDecisionsOperationResponse

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

type SendPendingAccessReviewInstanceDecisionInstanceReminderOperationOptions

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

func (SendPendingAccessReviewInstanceDecisionInstanceReminderOperationOptions) ToHeaders

func (SendPendingAccessReviewInstanceDecisionInstanceReminderOperationOptions) ToOData

func (SendPendingAccessReviewInstanceDecisionInstanceReminderOperationOptions) ToQuery

type SendPendingAccessReviewInstanceDecisionInstanceReminderOperationResponse

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

type StopPendingAccessReviewInstanceDecisionInstanceApplyDecisionsOperationOptions

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

func (StopPendingAccessReviewInstanceDecisionInstanceApplyDecisionsOperationOptions) ToHeaders

func (StopPendingAccessReviewInstanceDecisionInstanceApplyDecisionsOperationOptions) ToOData

func (StopPendingAccessReviewInstanceDecisionInstanceApplyDecisionsOperationOptions) ToQuery

type StopPendingAccessReviewInstanceDecisionInstanceApplyDecisionsOperationResponse

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

type StopPendingAccessReviewInstanceDecisionInstanceOperationOptions

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

func (StopPendingAccessReviewInstanceDecisionInstanceOperationOptions) ToHeaders

func (StopPendingAccessReviewInstanceDecisionInstanceOperationOptions) ToOData

func (StopPendingAccessReviewInstanceDecisionInstanceOperationOptions) ToQuery

type StopPendingAccessReviewInstanceDecisionInstanceOperationResponse

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

type UpdatePendingAccessReviewInstanceDecisionInstanceOperationOptions

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

func (UpdatePendingAccessReviewInstanceDecisionInstanceOperationOptions) ToHeaders

func (UpdatePendingAccessReviewInstanceDecisionInstanceOperationOptions) ToOData

func (UpdatePendingAccessReviewInstanceDecisionInstanceOperationOptions) ToQuery

type UpdatePendingAccessReviewInstanceDecisionInstanceOperationResponse

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