accessreviewdefinitioninstancedecisioninstancestagedecision

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/accessreviewdefinitioninstancedecisioninstancestagedecision Documentation

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

Client Initialization

client := accessreviewdefinitioninstancedecisioninstancestagedecision.NewAccessReviewDefinitionInstanceDecisionInstanceStageDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient.CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionIdInstanceStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

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


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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient.CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionIdInstanceStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

payload := accessreviewdefinitioninstancedecisioninstancestagedecision.CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient.GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCount

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionIdInstanceStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient.ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisions

ctx := context.TODO()
id := accessreviewdefinitioninstancedecisioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionIdInstanceStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

// alternatively `client.ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisions(ctx, id, accessreviewdefinitioninstancedecisioninstancestagedecision.DefaultListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationOptions())` can be used to do batched pagination
items, err := client.ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsComplete(ctx, id, accessreviewdefinitioninstancedecisioninstancestagedecision.DefaultListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient

type AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDefinitionInstanceDecisionInstanceStageDecisionClientWithBaseURI

func NewAccessReviewDefinitionInstanceDecisionInstanceStageDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient, error)

func (AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient) CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecision

CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecision - Create new navigation property to decisions for identityGovernance

func (AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient) CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecision

CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecision - 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 (AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient) GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCount

GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCount - Get the number of the resource

func (AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient) ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisions

ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisions - Get decisions from identityGovernance. Each user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed.

func (AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient) ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsComplete

ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsComplete retrieves all the results into a single object

func (AccessReviewDefinitionInstanceDecisionInstanceStageDecisionClient) ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCompleteMatchingPredicate

ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionRequest

type CreateAccessReviewDefinitionInstanceDecisionInstanceStageDecisionRecordAllDecisionRequest 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 GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCountOperationOptions

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

func (GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCountOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCountOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCountOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCountOperationResponse

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

type ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCompleteResult

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

type ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCustomPager

type ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsCustomPager struct {
	NextLink *odata.Link `json:"@odata.nextLink"`
}

type ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationOptions

type ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationOptions 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 (ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationOptions) ToHeaders

func (ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationOptions) ToOData

func (ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationOptions) ToQuery

type ListAccessReviewDefinitionInstanceDecisionInstanceStageDecisionsOperationResponse

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

Jump to

Keyboard shortcuts

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