pendingaccessreviewinstancedecisioninstancestagedecision

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/me/beta/pendingaccessreviewinstancedecisioninstancestagedecision Documentation

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

Client Initialization

client := pendingaccessreviewinstancedecisioninstancestagedecision.NewPendingAccessReviewInstanceDecisionInstanceStageDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: PendingAccessReviewInstanceDecisionInstanceStageDecisionClient.CreatePendingAccessReviewInstanceDecisionInstanceStageDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstancestagedecision.NewMePendingAccessReviewInstanceIdDecisionIdInstanceStageID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

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


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

Example Usage: PendingAccessReviewInstanceDecisionInstanceStageDecisionClient.CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstancestagedecision.NewMePendingAccessReviewInstanceIdDecisionIdInstanceStageID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

payload := pendingaccessreviewinstancedecisioninstancestagedecision.CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: PendingAccessReviewInstanceDecisionInstanceStageDecisionClient.GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCount

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstancestagedecision.NewMePendingAccessReviewInstanceIdDecisionIdInstanceStageID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

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

Example Usage: PendingAccessReviewInstanceDecisionInstanceStageDecisionClient.ListPendingAccessReviewInstanceDecisionInstanceStageDecisions

ctx := context.TODO()
id := pendingaccessreviewinstancedecisioninstancestagedecision.NewMePendingAccessReviewInstanceIdDecisionIdInstanceStageID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId", "accessReviewStageId")

// alternatively `client.ListPendingAccessReviewInstanceDecisionInstanceStageDecisions(ctx, id, pendingaccessreviewinstancedecisioninstancestagedecision.DefaultListPendingAccessReviewInstanceDecisionInstanceStageDecisionsOperationOptions())` can be used to do batched pagination
items, err := client.ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsComplete(ctx, id, pendingaccessreviewinstancedecisioninstancestagedecision.DefaultListPendingAccessReviewInstanceDecisionInstanceStageDecisionsOperationOptions())
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 CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionRequest

type CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecisionRequest 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 GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCountOperationOptions

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

func (GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCountOperationOptions) ToHeaders

func (GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCountOperationOptions) ToOData

func (GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCountOperationOptions) ToQuery

type GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCountOperationResponse

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

type ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsCompleteResult

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

type ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsCustomPager

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

type ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsOperationOptions

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

func (ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsOperationOptions) ToOData

func (ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsOperationOptions) ToQuery

type ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsOperationResponse

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

type PendingAccessReviewInstanceDecisionInstanceStageDecisionClient

type PendingAccessReviewInstanceDecisionInstanceStageDecisionClient struct {
	Client *msgraph.Client
}

func NewPendingAccessReviewInstanceDecisionInstanceStageDecisionClientWithBaseURI

func NewPendingAccessReviewInstanceDecisionInstanceStageDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*PendingAccessReviewInstanceDecisionInstanceStageDecisionClient, error)

func (PendingAccessReviewInstanceDecisionInstanceStageDecisionClient) CreatePendingAccessReviewInstanceDecisionInstanceStageDecision

CreatePendingAccessReviewInstanceDecisionInstanceStageDecision - Create new navigation property to decisions for me

func (PendingAccessReviewInstanceDecisionInstanceStageDecisionClient) CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecision

CreatePendingAccessReviewInstanceDecisionInstanceStageDecisionRecordAllDecision - 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 (PendingAccessReviewInstanceDecisionInstanceStageDecisionClient) GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCount

GetPendingAccessReviewInstanceDecisionInstanceStageDecisionsCount - Get the number of the resource

func (PendingAccessReviewInstanceDecisionInstanceStageDecisionClient) ListPendingAccessReviewInstanceDecisionInstanceStageDecisions

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

func (PendingAccessReviewInstanceDecisionInstanceStageDecisionClient) ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsComplete

ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsComplete retrieves all the results into a single object

func (PendingAccessReviewInstanceDecisionInstanceStageDecisionClient) ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsCompleteMatchingPredicate

ListPendingAccessReviewInstanceDecisionInstanceStageDecisionsCompleteMatchingPredicate 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