pendingaccessreviewinstancestagedecisioninstancedecision

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/users/beta/pendingaccessreviewinstancestagedecisioninstancedecision Documentation

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

Client Initialization

client := pendingaccessreviewinstancestagedecisioninstancedecision.NewPendingAccessReviewInstanceStageDecisionInstanceDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: PendingAccessReviewInstanceStageDecisionInstanceDecisionClient.CreatePendingAccessReviewInstanceStageDecisionInstanceDecision

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecisioninstancedecision.NewUserIdPendingAccessReviewInstanceIdStageIdDecisionID("userId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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


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

Example Usage: PendingAccessReviewInstanceStageDecisionInstanceDecisionClient.CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecision

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecisioninstancedecision.NewUserIdPendingAccessReviewInstanceIdStageIdDecisionID("userId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

payload := pendingaccessreviewinstancestagedecisioninstancedecision.CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: PendingAccessReviewInstanceStageDecisionInstanceDecisionClient.GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCount

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecisioninstancedecision.NewUserIdPendingAccessReviewInstanceIdStageIdDecisionID("userId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceStageDecisionInstanceDecisionClient.ListPendingAccessReviewInstanceStageDecisionInstanceDecisions

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecisioninstancedecision.NewUserIdPendingAccessReviewInstanceIdStageIdDecisionID("userId", "accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

// alternatively `client.ListPendingAccessReviewInstanceStageDecisionInstanceDecisions(ctx, id, pendingaccessreviewinstancestagedecisioninstancedecision.DefaultListPendingAccessReviewInstanceStageDecisionInstanceDecisionsOperationOptions())` can be used to do batched pagination
items, err := client.ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsComplete(ctx, id, pendingaccessreviewinstancestagedecisioninstancedecision.DefaultListPendingAccessReviewInstanceStageDecisionInstanceDecisionsOperationOptions())
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 AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionRequest

type CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecisionRequest 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 GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCountOperationOptions

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

func (GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCountOperationOptions) ToHeaders

func (GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCountOperationOptions) ToOData

func (GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCountOperationOptions) ToQuery

type GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCountOperationResponse

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

type ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsCompleteResult

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

type ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsCustomPager

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

type ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsOperationOptions

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

func (ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsOperationOptions) ToOData

func (ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsOperationOptions) ToQuery

type ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsOperationResponse

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

type PendingAccessReviewInstanceStageDecisionInstanceDecisionClient

type PendingAccessReviewInstanceStageDecisionInstanceDecisionClient struct {
	Client *msgraph.Client
}

func NewPendingAccessReviewInstanceStageDecisionInstanceDecisionClientWithBaseURI

func NewPendingAccessReviewInstanceStageDecisionInstanceDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*PendingAccessReviewInstanceStageDecisionInstanceDecisionClient, error)

func (PendingAccessReviewInstanceStageDecisionInstanceDecisionClient) CreatePendingAccessReviewInstanceStageDecisionInstanceDecision

CreatePendingAccessReviewInstanceStageDecisionInstanceDecision - Create new navigation property to decisions for users

func (PendingAccessReviewInstanceStageDecisionInstanceDecisionClient) CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecision

CreatePendingAccessReviewInstanceStageDecisionInstanceDecisionRecordAllDecision - 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 (PendingAccessReviewInstanceStageDecisionInstanceDecisionClient) GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCount

GetPendingAccessReviewInstanceStageDecisionInstanceDecisionsCount - Get the number of the resource

func (PendingAccessReviewInstanceStageDecisionInstanceDecisionClient) ListPendingAccessReviewInstanceStageDecisionInstanceDecisions

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

func (PendingAccessReviewInstanceStageDecisionInstanceDecisionClient) ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsComplete

ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsComplete retrieves all the results into a single object

func (PendingAccessReviewInstanceStageDecisionInstanceDecisionClient) ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsCompleteMatchingPredicate

ListPendingAccessReviewInstanceStageDecisionInstanceDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

Jump to

Keyboard shortcuts

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