pendingaccessreviewinstancedecision

package
v0.20241021.1074254 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/pendingaccessreviewinstancedecision Documentation

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

Client Initialization

client := pendingaccessreviewinstancedecision.NewPendingAccessReviewInstanceDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: PendingAccessReviewInstanceDecisionClient.CreatePendingAccessReviewInstanceDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecision.NewMePendingAccessReviewInstanceID("accessReviewInstanceId")

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


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

Example Usage: PendingAccessReviewInstanceDecisionClient.CreatePendingAccessReviewInstanceDecisionRecordAllDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecision.NewMePendingAccessReviewInstanceID("accessReviewInstanceId")

payload := pendingaccessreviewinstancedecision.CreatePendingAccessReviewInstanceDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: PendingAccessReviewInstanceDecisionClient.DeletePendingAccessReviewInstanceDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecision.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionClient.GetPendingAccessReviewInstanceDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecision.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: PendingAccessReviewInstanceDecisionClient.GetPendingAccessReviewInstanceDecisionsCount

ctx := context.TODO()
id := pendingaccessreviewinstancedecision.NewMePendingAccessReviewInstanceID("accessReviewInstanceId")

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

Example Usage: PendingAccessReviewInstanceDecisionClient.ListPendingAccessReviewInstanceDecisions

ctx := context.TODO()
id := pendingaccessreviewinstancedecision.NewMePendingAccessReviewInstanceID("accessReviewInstanceId")

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

Example Usage: PendingAccessReviewInstanceDecisionClient.UpdatePendingAccessReviewInstanceDecision

ctx := context.TODO()
id := pendingaccessreviewinstancedecision.NewMePendingAccessReviewInstanceIdDecisionID("accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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


read, err := client.UpdatePendingAccessReviewInstanceDecision(ctx, id, payload, pendingaccessreviewinstancedecision.DefaultUpdatePendingAccessReviewInstanceDecisionOperationOptions())
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 CreatePendingAccessReviewInstanceDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceDecisionRecordAllDecisionOperationOptions

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

func (CreatePendingAccessReviewInstanceDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreatePendingAccessReviewInstanceDecisionRecordAllDecisionOperationOptions) ToOData

func (CreatePendingAccessReviewInstanceDecisionRecordAllDecisionOperationOptions) ToQuery

type CreatePendingAccessReviewInstanceDecisionRecordAllDecisionOperationResponse

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

type CreatePendingAccessReviewInstanceDecisionRecordAllDecisionRequest

type CreatePendingAccessReviewInstanceDecisionRecordAllDecisionRequest 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 DeletePendingAccessReviewInstanceDecisionOperationOptions

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

func (DeletePendingAccessReviewInstanceDecisionOperationOptions) ToHeaders

func (DeletePendingAccessReviewInstanceDecisionOperationOptions) ToOData

func (DeletePendingAccessReviewInstanceDecisionOperationOptions) ToQuery

type DeletePendingAccessReviewInstanceDecisionOperationResponse

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

type GetPendingAccessReviewInstanceDecisionOperationOptions

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

func DefaultGetPendingAccessReviewInstanceDecisionOperationOptions

func DefaultGetPendingAccessReviewInstanceDecisionOperationOptions() GetPendingAccessReviewInstanceDecisionOperationOptions

func (GetPendingAccessReviewInstanceDecisionOperationOptions) ToHeaders

func (GetPendingAccessReviewInstanceDecisionOperationOptions) ToOData

func (GetPendingAccessReviewInstanceDecisionOperationOptions) ToQuery

type GetPendingAccessReviewInstanceDecisionOperationResponse

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

type GetPendingAccessReviewInstanceDecisionsCountOperationOptions

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

func (GetPendingAccessReviewInstanceDecisionsCountOperationOptions) ToHeaders

func (GetPendingAccessReviewInstanceDecisionsCountOperationOptions) ToOData

func (GetPendingAccessReviewInstanceDecisionsCountOperationOptions) ToQuery

type GetPendingAccessReviewInstanceDecisionsCountOperationResponse

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

type ListPendingAccessReviewInstanceDecisionsCompleteResult

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

type ListPendingAccessReviewInstanceDecisionsCustomPager

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

type ListPendingAccessReviewInstanceDecisionsOperationOptions

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

func (ListPendingAccessReviewInstanceDecisionsOperationOptions) ToOData

func (ListPendingAccessReviewInstanceDecisionsOperationOptions) ToQuery

type ListPendingAccessReviewInstanceDecisionsOperationResponse

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

type PendingAccessReviewInstanceDecisionClient

type PendingAccessReviewInstanceDecisionClient struct {
	Client *msgraph.Client
}

func NewPendingAccessReviewInstanceDecisionClientWithBaseURI

func NewPendingAccessReviewInstanceDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*PendingAccessReviewInstanceDecisionClient, error)

func (PendingAccessReviewInstanceDecisionClient) CreatePendingAccessReviewInstanceDecision

CreatePendingAccessReviewInstanceDecision - Create new navigation property to decisions for me

func (PendingAccessReviewInstanceDecisionClient) CreatePendingAccessReviewInstanceDecisionRecordAllDecision

CreatePendingAccessReviewInstanceDecisionRecordAllDecision - 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 (PendingAccessReviewInstanceDecisionClient) DeletePendingAccessReviewInstanceDecision

DeletePendingAccessReviewInstanceDecision - Delete navigation property decisions for me

func (PendingAccessReviewInstanceDecisionClient) GetPendingAccessReviewInstanceDecision

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

func (PendingAccessReviewInstanceDecisionClient) GetPendingAccessReviewInstanceDecisionsCount

GetPendingAccessReviewInstanceDecisionsCount - Get the number of the resource

func (PendingAccessReviewInstanceDecisionClient) ListPendingAccessReviewInstanceDecisions

ListPendingAccessReviewInstanceDecisions - List accessReviewInstanceDecisionItems pending approval (deprecated). Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance pending approval by the calling user. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties.

func (PendingAccessReviewInstanceDecisionClient) ListPendingAccessReviewInstanceDecisionsComplete

ListPendingAccessReviewInstanceDecisionsComplete retrieves all the results into a single object

func (PendingAccessReviewInstanceDecisionClient) ListPendingAccessReviewInstanceDecisionsCompleteMatchingPredicate

ListPendingAccessReviewInstanceDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (PendingAccessReviewInstanceDecisionClient) UpdatePendingAccessReviewInstanceDecision

UpdatePendingAccessReviewInstanceDecision - Update the navigation property decisions in me

type UpdatePendingAccessReviewInstanceDecisionOperationOptions

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

func (UpdatePendingAccessReviewInstanceDecisionOperationOptions) ToHeaders

func (UpdatePendingAccessReviewInstanceDecisionOperationOptions) ToOData

func (UpdatePendingAccessReviewInstanceDecisionOperationOptions) ToQuery

type UpdatePendingAccessReviewInstanceDecisionOperationResponse

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