accessreviewdefinitioninstancestagedecision

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

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

Client Initialization

client := accessreviewdefinitioninstancestagedecision.NewAccessReviewDefinitionInstanceStageDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDefinitionInstanceStageDecisionClient.CreateAccessReviewDefinitionInstanceStageDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId")

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


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

Example Usage: AccessReviewDefinitionInstanceStageDecisionClient.CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId")

payload := accessreviewdefinitioninstancestagedecision.CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDefinitionInstanceStageDecisionClient.DeleteAccessReviewDefinitionInstanceStageDecision

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

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionClient.GetAccessReviewDefinitionInstanceStageDecision

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

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionClient.GetAccessReviewDefinitionInstanceStageDecisionsCount

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionClient.ListAccessReviewDefinitionInstanceStageDecisions

ctx := context.TODO()
id := accessreviewdefinitioninstancestagedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdStageID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewStageId")

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

Example Usage: AccessReviewDefinitionInstanceStageDecisionClient.UpdateAccessReviewDefinitionInstanceStageDecision

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

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


read, err := client.UpdateAccessReviewDefinitionInstanceStageDecision(ctx, id, payload, accessreviewdefinitioninstancestagedecision.DefaultUpdateAccessReviewDefinitionInstanceStageDecisionOperationOptions())
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 AccessReviewDefinitionInstanceStageDecisionClient

type AccessReviewDefinitionInstanceStageDecisionClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDefinitionInstanceStageDecisionClientWithBaseURI

func NewAccessReviewDefinitionInstanceStageDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDefinitionInstanceStageDecisionClient, error)

func (AccessReviewDefinitionInstanceStageDecisionClient) CreateAccessReviewDefinitionInstanceStageDecision

CreateAccessReviewDefinitionInstanceStageDecision - Create new navigation property to decisions for identityGovernance

func (AccessReviewDefinitionInstanceStageDecisionClient) CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecision

CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecision - 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 (AccessReviewDefinitionInstanceStageDecisionClient) DeleteAccessReviewDefinitionInstanceStageDecision

DeleteAccessReviewDefinitionInstanceStageDecision - Delete navigation property decisions for identityGovernance

func (AccessReviewDefinitionInstanceStageDecisionClient) GetAccessReviewDefinitionInstanceStageDecision

GetAccessReviewDefinitionInstanceStageDecision - Get accessReviewInstanceDecisionItem. Read the properties and relationships of an accessReviewInstanceDecisionItem object.

func (AccessReviewDefinitionInstanceStageDecisionClient) GetAccessReviewDefinitionInstanceStageDecisionsCount

GetAccessReviewDefinitionInstanceStageDecisionsCount - Get the number of the resource

func (AccessReviewDefinitionInstanceStageDecisionClient) ListAccessReviewDefinitionInstanceStageDecisions

ListAccessReviewDefinitionInstanceStageDecisions - List decisions (from a multi-stage access review). Get the decisions from a stage in a multi-stage access review. The decisions in an accessReviewStage object are represented by an accessReviewInstanceDecisionItem object.

func (AccessReviewDefinitionInstanceStageDecisionClient) ListAccessReviewDefinitionInstanceStageDecisionsComplete

ListAccessReviewDefinitionInstanceStageDecisionsComplete retrieves all the results into a single object

func (AccessReviewDefinitionInstanceStageDecisionClient) ListAccessReviewDefinitionInstanceStageDecisionsCompleteMatchingPredicate

ListAccessReviewDefinitionInstanceStageDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AccessReviewDefinitionInstanceStageDecisionClient) UpdateAccessReviewDefinitionInstanceStageDecision

UpdateAccessReviewDefinitionInstanceStageDecision - Update accessReviewInstanceDecisionItem. Update access decisions, known as accessReviewInstanceDecisionItems, for which the user is the reviewer.

type AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreateAccessReviewDefinitionInstanceStageDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceStageDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionRequest

type CreateAccessReviewDefinitionInstanceStageDecisionRecordAllDecisionRequest 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 DeleteAccessReviewDefinitionInstanceStageDecisionOperationOptions

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

func (DeleteAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToHeaders

func (DeleteAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToOData

func (DeleteAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToQuery

type DeleteAccessReviewDefinitionInstanceStageDecisionOperationResponse

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

type GetAccessReviewDefinitionInstanceStageDecisionOperationOptions

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

func (GetAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceStageDecisionOperationResponse

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

type GetAccessReviewDefinitionInstanceStageDecisionsCountOperationOptions

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

func (GetAccessReviewDefinitionInstanceStageDecisionsCountOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceStageDecisionsCountOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceStageDecisionsCountOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceStageDecisionsCountOperationResponse

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

type ListAccessReviewDefinitionInstanceStageDecisionsCompleteResult

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

type ListAccessReviewDefinitionInstanceStageDecisionsCustomPager

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

type ListAccessReviewDefinitionInstanceStageDecisionsOperationOptions

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

func (ListAccessReviewDefinitionInstanceStageDecisionsOperationOptions) ToOData

func (ListAccessReviewDefinitionInstanceStageDecisionsOperationOptions) ToQuery

type ListAccessReviewDefinitionInstanceStageDecisionsOperationResponse

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

type UpdateAccessReviewDefinitionInstanceStageDecisionOperationOptions

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

func (UpdateAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToHeaders

func (UpdateAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToOData

func (UpdateAccessReviewDefinitionInstanceStageDecisionOperationOptions) ToQuery

type UpdateAccessReviewDefinitionInstanceStageDecisionOperationResponse

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