pendingaccessreviewinstancestagedecision

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

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

Client Initialization

client := pendingaccessreviewinstancestagedecision.NewPendingAccessReviewInstanceStageDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: PendingAccessReviewInstanceStageDecisionClient.CreatePendingAccessReviewInstanceStageDecision

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecision.NewMePendingAccessReviewInstanceIdStageID("accessReviewInstanceId", "accessReviewStageId")

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


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

Example Usage: PendingAccessReviewInstanceStageDecisionClient.CreatePendingAccessReviewInstanceStageDecisionRecordAllDecision

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecision.NewMePendingAccessReviewInstanceIdStageID("accessReviewInstanceId", "accessReviewStageId")

payload := pendingaccessreviewinstancestagedecision.CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: PendingAccessReviewInstanceStageDecisionClient.DeletePendingAccessReviewInstanceStageDecision

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecision.NewMePendingAccessReviewInstanceIdStageIdDecisionID("accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceStageDecisionClient.GetPendingAccessReviewInstanceStageDecision

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecision.NewMePendingAccessReviewInstanceIdStageIdDecisionID("accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceStageDecisionClient.GetPendingAccessReviewInstanceStageDecisionsCount

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecision.NewMePendingAccessReviewInstanceIdStageID("accessReviewInstanceId", "accessReviewStageId")

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

Example Usage: PendingAccessReviewInstanceStageDecisionClient.ListPendingAccessReviewInstanceStageDecisions

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecision.NewMePendingAccessReviewInstanceIdStageID("accessReviewInstanceId", "accessReviewStageId")

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

Example Usage: PendingAccessReviewInstanceStageDecisionClient.UpdatePendingAccessReviewInstanceStageDecision

ctx := context.TODO()
id := pendingaccessreviewinstancestagedecision.NewMePendingAccessReviewInstanceIdStageIdDecisionID("accessReviewInstanceId", "accessReviewStageId", "accessReviewInstanceDecisionItemId")

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


read, err := client.UpdatePendingAccessReviewInstanceStageDecision(ctx, id, payload, pendingaccessreviewinstancestagedecision.DefaultUpdatePendingAccessReviewInstanceStageDecisionOperationOptions())
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 AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreatePendingAccessReviewInstanceStageDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceStageDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceStageDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceStageDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceStageDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionRequest

type CreatePendingAccessReviewInstanceStageDecisionRecordAllDecisionRequest 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 DeletePendingAccessReviewInstanceStageDecisionOperationOptions

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

func (DeletePendingAccessReviewInstanceStageDecisionOperationOptions) ToHeaders

func (DeletePendingAccessReviewInstanceStageDecisionOperationOptions) ToOData

func (DeletePendingAccessReviewInstanceStageDecisionOperationOptions) ToQuery

type DeletePendingAccessReviewInstanceStageDecisionOperationResponse

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

type GetPendingAccessReviewInstanceStageDecisionOperationOptions

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

func (GetPendingAccessReviewInstanceStageDecisionOperationOptions) ToHeaders

func (GetPendingAccessReviewInstanceStageDecisionOperationOptions) ToOData

func (GetPendingAccessReviewInstanceStageDecisionOperationOptions) ToQuery

type GetPendingAccessReviewInstanceStageDecisionOperationResponse

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

type GetPendingAccessReviewInstanceStageDecisionsCountOperationOptions

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

func (GetPendingAccessReviewInstanceStageDecisionsCountOperationOptions) ToHeaders

func (GetPendingAccessReviewInstanceStageDecisionsCountOperationOptions) ToOData

func (GetPendingAccessReviewInstanceStageDecisionsCountOperationOptions) ToQuery

type GetPendingAccessReviewInstanceStageDecisionsCountOperationResponse

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

type ListPendingAccessReviewInstanceStageDecisionsCompleteResult

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

type ListPendingAccessReviewInstanceStageDecisionsCustomPager

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

type ListPendingAccessReviewInstanceStageDecisionsOperationOptions

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

func (ListPendingAccessReviewInstanceStageDecisionsOperationOptions) ToOData

func (ListPendingAccessReviewInstanceStageDecisionsOperationOptions) ToQuery

type ListPendingAccessReviewInstanceStageDecisionsOperationResponse

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

type PendingAccessReviewInstanceStageDecisionClient

type PendingAccessReviewInstanceStageDecisionClient struct {
	Client *msgraph.Client
}

func NewPendingAccessReviewInstanceStageDecisionClientWithBaseURI

func NewPendingAccessReviewInstanceStageDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*PendingAccessReviewInstanceStageDecisionClient, error)

func (PendingAccessReviewInstanceStageDecisionClient) CreatePendingAccessReviewInstanceStageDecision

CreatePendingAccessReviewInstanceStageDecision - Create new navigation property to decisions for me

func (PendingAccessReviewInstanceStageDecisionClient) CreatePendingAccessReviewInstanceStageDecisionRecordAllDecision

CreatePendingAccessReviewInstanceStageDecisionRecordAllDecision - 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 (PendingAccessReviewInstanceStageDecisionClient) DeletePendingAccessReviewInstanceStageDecision

DeletePendingAccessReviewInstanceStageDecision - Delete navigation property decisions for me

func (PendingAccessReviewInstanceStageDecisionClient) GetPendingAccessReviewInstanceStageDecision

GetPendingAccessReviewInstanceStageDecision - 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 (PendingAccessReviewInstanceStageDecisionClient) GetPendingAccessReviewInstanceStageDecisionsCount

GetPendingAccessReviewInstanceStageDecisionsCount - Get the number of the resource

func (PendingAccessReviewInstanceStageDecisionClient) ListPendingAccessReviewInstanceStageDecisions

ListPendingAccessReviewInstanceStageDecisions - 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 (PendingAccessReviewInstanceStageDecisionClient) ListPendingAccessReviewInstanceStageDecisionsComplete

ListPendingAccessReviewInstanceStageDecisionsComplete retrieves all the results into a single object

func (PendingAccessReviewInstanceStageDecisionClient) ListPendingAccessReviewInstanceStageDecisionsCompleteMatchingPredicate

ListPendingAccessReviewInstanceStageDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PendingAccessReviewInstanceStageDecisionClient) UpdatePendingAccessReviewInstanceStageDecision

UpdatePendingAccessReviewInstanceStageDecision - Update the navigation property decisions in me

type UpdatePendingAccessReviewInstanceStageDecisionOperationOptions

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

func (UpdatePendingAccessReviewInstanceStageDecisionOperationOptions) ToHeaders

func (UpdatePendingAccessReviewInstanceStageDecisionOperationOptions) ToOData

func (UpdatePendingAccessReviewInstanceStageDecisionOperationOptions) ToQuery

type UpdatePendingAccessReviewInstanceStageDecisionOperationResponse

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