accessreviewdefinitioninstancedecision

package
v0.20241104.1140654 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/identitygovernance/beta/accessreviewdefinitioninstancedecision Documentation

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

Client Initialization

client := accessreviewdefinitioninstancedecision.NewAccessReviewDefinitionInstanceDecisionClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: AccessReviewDefinitionInstanceDecisionClient.CreateAccessReviewDefinitionInstanceDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceID("accessReviewScheduleDefinitionId", "accessReviewInstanceId")

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


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

Example Usage: AccessReviewDefinitionInstanceDecisionClient.CreateAccessReviewDefinitionInstanceDecisionRecordAllDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceID("accessReviewScheduleDefinitionId", "accessReviewInstanceId")

payload := accessreviewdefinitioninstancedecision.CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionRequest{
	// ...
}


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

Example Usage: AccessReviewDefinitionInstanceDecisionClient.DeleteAccessReviewDefinitionInstanceDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionClient.GetAccessReviewDefinitionInstanceDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionClient.GetAccessReviewDefinitionInstanceDecisionsCount

ctx := context.TODO()
id := accessreviewdefinitioninstancedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceID("accessReviewScheduleDefinitionId", "accessReviewInstanceId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionClient.ListAccessReviewDefinitionInstanceDecisions

ctx := context.TODO()
id := accessreviewdefinitioninstancedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceID("accessReviewScheduleDefinitionId", "accessReviewInstanceId")

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

Example Usage: AccessReviewDefinitionInstanceDecisionClient.UpdateAccessReviewDefinitionInstanceDecision

ctx := context.TODO()
id := accessreviewdefinitioninstancedecision.NewIdentityGovernanceAccessReviewDefinitionIdInstanceIdDecisionID("accessReviewScheduleDefinitionId", "accessReviewInstanceId", "accessReviewInstanceDecisionItemId")

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


read, err := client.UpdateAccessReviewDefinitionInstanceDecision(ctx, id, payload, accessreviewdefinitioninstancedecision.DefaultUpdateAccessReviewDefinitionInstanceDecisionOperationOptions())
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 AccessReviewDefinitionInstanceDecisionClient

type AccessReviewDefinitionInstanceDecisionClient struct {
	Client *msgraph.Client
}

func NewAccessReviewDefinitionInstanceDecisionClientWithBaseURI

func NewAccessReviewDefinitionInstanceDecisionClientWithBaseURI(sdkApi sdkEnv.Api) (*AccessReviewDefinitionInstanceDecisionClient, error)

func (AccessReviewDefinitionInstanceDecisionClient) CreateAccessReviewDefinitionInstanceDecision

CreateAccessReviewDefinitionInstanceDecision - Create new navigation property to decisions for identityGovernance

func (AccessReviewDefinitionInstanceDecisionClient) CreateAccessReviewDefinitionInstanceDecisionRecordAllDecision

CreateAccessReviewDefinitionInstanceDecisionRecordAllDecision - 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 (AccessReviewDefinitionInstanceDecisionClient) DeleteAccessReviewDefinitionInstanceDecision

DeleteAccessReviewDefinitionInstanceDecision - Delete navigation property decisions for identityGovernance

func (AccessReviewDefinitionInstanceDecisionClient) GetAccessReviewDefinitionInstanceDecision

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

func (AccessReviewDefinitionInstanceDecisionClient) GetAccessReviewDefinitionInstanceDecisionsCount

GetAccessReviewDefinitionInstanceDecisionsCount - Get the number of the resource

func (AccessReviewDefinitionInstanceDecisionClient) ListAccessReviewDefinitionInstanceDecisions

ListAccessReviewDefinitionInstanceDecisions - List decisions. Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties.

func (AccessReviewDefinitionInstanceDecisionClient) ListAccessReviewDefinitionInstanceDecisionsComplete

ListAccessReviewDefinitionInstanceDecisionsComplete retrieves all the results into a single object

func (AccessReviewDefinitionInstanceDecisionClient) ListAccessReviewDefinitionInstanceDecisionsCompleteMatchingPredicate

ListAccessReviewDefinitionInstanceDecisionsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AccessReviewDefinitionInstanceDecisionClient) UpdateAccessReviewDefinitionInstanceDecision

UpdateAccessReviewDefinitionInstanceDecision - Update the navigation property decisions in identityGovernance

type AccessReviewInstanceDecisionItemOperationPredicate

type AccessReviewInstanceDecisionItemOperationPredicate struct {
}

func (AccessReviewInstanceDecisionItemOperationPredicate) Matches

type CreateAccessReviewDefinitionInstanceDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionOperationOptions

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

func (CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionOperationOptions) ToHeaders

func (CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionOperationOptions) ToOData

func (CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionOperationOptions) ToQuery

type CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionOperationResponse

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

type CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionRequest

type CreateAccessReviewDefinitionInstanceDecisionRecordAllDecisionRequest 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 DeleteAccessReviewDefinitionInstanceDecisionOperationOptions

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

func (DeleteAccessReviewDefinitionInstanceDecisionOperationOptions) ToHeaders

func (DeleteAccessReviewDefinitionInstanceDecisionOperationOptions) ToOData

func (DeleteAccessReviewDefinitionInstanceDecisionOperationOptions) ToQuery

type DeleteAccessReviewDefinitionInstanceDecisionOperationResponse

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

type GetAccessReviewDefinitionInstanceDecisionOperationOptions

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

func (GetAccessReviewDefinitionInstanceDecisionOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceDecisionOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceDecisionOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceDecisionOperationResponse

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

type GetAccessReviewDefinitionInstanceDecisionsCountOperationOptions

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

func (GetAccessReviewDefinitionInstanceDecisionsCountOperationOptions) ToHeaders

func (GetAccessReviewDefinitionInstanceDecisionsCountOperationOptions) ToOData

func (GetAccessReviewDefinitionInstanceDecisionsCountOperationOptions) ToQuery

type GetAccessReviewDefinitionInstanceDecisionsCountOperationResponse

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

type ListAccessReviewDefinitionInstanceDecisionsCompleteResult

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

type ListAccessReviewDefinitionInstanceDecisionsCustomPager

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

type ListAccessReviewDefinitionInstanceDecisionsOperationOptions

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

func (ListAccessReviewDefinitionInstanceDecisionsOperationOptions) ToOData

func (ListAccessReviewDefinitionInstanceDecisionsOperationOptions) ToQuery

type ListAccessReviewDefinitionInstanceDecisionsOperationResponse

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

type UpdateAccessReviewDefinitionInstanceDecisionOperationOptions

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

func (UpdateAccessReviewDefinitionInstanceDecisionOperationOptions) ToHeaders

func (UpdateAccessReviewDefinitionInstanceDecisionOperationOptions) ToOData

func (UpdateAccessReviewDefinitionInstanceDecisionOperationOptions) ToQuery

type UpdateAccessReviewDefinitionInstanceDecisionOperationResponse

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