accessreviewdecisioninstancedecision

package
v0.20241104.1140654 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := accessreviewdecisioninstancedecision.NewAccessReviewDecisionInstanceDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDecisionInstanceDecisionClient.CreateAccessReviewDecisionInstanceDecision

ctx := context.TODO()
id := accessreviewdecisioninstancedecision.NewIdentityGovernanceAccessReviewDecisionID("accessReviewInstanceDecisionItemId")

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


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

Example Usage: AccessReviewDecisionInstanceDecisionClient.CreateAccessReviewDecisionInstanceDecisionRecordAllDecision

ctx := context.TODO()
id := accessreviewdecisioninstancedecision.NewIdentityGovernanceAccessReviewDecisionID("accessReviewInstanceDecisionItemId")

payload := accessreviewdecisioninstancedecision.CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDecisionInstanceDecisionClient.GetAccessReviewDecisionInstanceDecisionsCount

ctx := context.TODO()
id := accessreviewdecisioninstancedecision.NewIdentityGovernanceAccessReviewDecisionID("accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDecisionInstanceDecisionClient.ListAccessReviewDecisionInstanceDecisions

ctx := context.TODO()
id := accessreviewdecisioninstancedecision.NewIdentityGovernanceAccessReviewDecisionID("accessReviewInstanceDecisionItemId")

// alternatively `client.ListAccessReviewDecisionInstanceDecisions(ctx, id, accessreviewdecisioninstancedecision.DefaultListAccessReviewDecisionInstanceDecisionsOperationOptions())` can be used to do batched pagination
items, err := client.ListAccessReviewDecisionInstanceDecisionsComplete(ctx, id, accessreviewdecisioninstancedecision.DefaultListAccessReviewDecisionInstanceDecisionsOperationOptions())
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 AccessReviewDecisionInstanceDecisionClient

type AccessReviewDecisionInstanceDecisionClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDecisionInstanceDecisionClientWithBaseURI

func NewAccessReviewDecisionInstanceDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDecisionInstanceDecisionClient, error)

func (AccessReviewDecisionInstanceDecisionClient) CreateAccessReviewDecisionInstanceDecision

CreateAccessReviewDecisionInstanceDecision - Create new navigation property to decisions for identityGovernance

func (AccessReviewDecisionInstanceDecisionClient) CreateAccessReviewDecisionInstanceDecisionRecordAllDecision

CreateAccessReviewDecisionInstanceDecisionRecordAllDecision - 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 (AccessReviewDecisionInstanceDecisionClient) GetAccessReviewDecisionInstanceDecisionsCount

GetAccessReviewDecisionInstanceDecisionsCount - Get the number of the resource

func (AccessReviewDecisionInstanceDecisionClient) ListAccessReviewDecisionInstanceDecisions

ListAccessReviewDecisionInstanceDecisions - 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 (AccessReviewDecisionInstanceDecisionClient) ListAccessReviewDecisionInstanceDecisionsComplete

ListAccessReviewDecisionInstanceDecisionsComplete retrieves all the results into a single object

func (AccessReviewDecisionInstanceDecisionClient) ListAccessReviewDecisionInstanceDecisionsCompleteMatchingPredicate

ListAccessReviewDecisionInstanceDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

type AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreateAccessReviewDecisionInstanceDecisionOperationOptions

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

func (CreateAccessReviewDecisionInstanceDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDecisionInstanceDecisionOperationOptions) ToOData

func (CreateAccessReviewDecisionInstanceDecisionOperationOptions) ToQuery

type CreateAccessReviewDecisionInstanceDecisionOperationResponse

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

type CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionOperationOptions

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

func (CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToOData

func (CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToQuery

type CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionOperationResponse

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

type CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionRequest

type CreateAccessReviewDecisionInstanceDecisionRecordAllDecisionRequest 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 GetAccessReviewDecisionInstanceDecisionsCountOperationOptions

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

func (GetAccessReviewDecisionInstanceDecisionsCountOperationOptions) ToHeaders

func (GetAccessReviewDecisionInstanceDecisionsCountOperationOptions) ToOData

func (GetAccessReviewDecisionInstanceDecisionsCountOperationOptions) ToQuery

type GetAccessReviewDecisionInstanceDecisionsCountOperationResponse

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

type ListAccessReviewDecisionInstanceDecisionsCompleteResult

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

type ListAccessReviewDecisionInstanceDecisionsCustomPager

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

type ListAccessReviewDecisionInstanceDecisionsOperationOptions

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

func (ListAccessReviewDecisionInstanceDecisionsOperationOptions) ToOData

func (ListAccessReviewDecisionInstanceDecisionsOperationOptions) ToQuery

type ListAccessReviewDecisionInstanceDecisionsOperationResponse

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