accessreviewdefinitioninstancestagedecisioninstancedecision

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

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

Client Initialization

client := accessreviewdefinitioninstancestagedecisioninstancedecision.NewAccessReviewDefinitionInstanceStageDecisionInstanceDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient.CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecision

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

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


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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient.CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecision

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

payload := accessreviewdefinitioninstancestagedecisioninstancedecision.CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient.GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCount

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

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient.ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisions

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

// alternatively `client.ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisions(ctx, id, accessreviewdefinitioninstancestagedecisioninstancedecision.DefaultListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions())` can be used to do batched pagination
items, err := client.ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsComplete(ctx, id, accessreviewdefinitioninstancestagedecisioninstancedecision.DefaultListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions())
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 AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient

type AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDefinitionInstanceStageDecisionInstanceDecisionClientWithBaseURI

func NewAccessReviewDefinitionInstanceStageDecisionInstanceDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient, error)

func (AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient) CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecision

CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecision - Create new navigation property to decisions for identityGovernance

func (AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient) CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecision

CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecision - 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 (AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient) GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCount

GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCount - Get the number of the resource

func (AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient) ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisions

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

func (AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient) ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsComplete

ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsComplete retrieves all the results into a single object

func (AccessReviewDefinitionInstanceStageDecisionInstanceDecisionClient) ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCompleteMatchingPredicate

ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionRequest

type CreateAccessReviewDefinitionInstanceStageDecisionInstanceDecisionRecordAllDecisionRequest 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 GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCountOperationOptions

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

func (GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCountOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCountOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCountOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCountOperationResponse

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

type ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCompleteResult

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

type ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsCustomPager

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

type ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions

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

func (ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions) ToOData

func (ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationOptions) ToQuery

type ListAccessReviewDefinitionInstanceStageDecisionInstanceDecisionsOperationResponse

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