informationprotectionsensitivitylabel

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: 8 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/users/beta/informationprotectionsensitivitylabel Documentation

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

Client Initialization

client := informationprotectionsensitivitylabel.NewInformationProtectionSensitivityLabelClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: InformationProtectionSensitivityLabelClient.CreateInformationProtectionSensitivityLabel

ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewUserID("userId")

payload := informationprotectionsensitivitylabel.SensitivityLabel{
	// ...
}


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

Example Usage: InformationProtectionSensitivityLabelClient.DeleteInformationProtectionSensitivityLabel

ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewUserIdInformationProtectionSensitivityLabelID("userId", "sensitivityLabelId")

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

Example Usage: InformationProtectionSensitivityLabelClient.EvaluateInformationProtectionSensitivityLabels

ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewUserID("userId")

payload := informationprotectionsensitivitylabel.EvaluateInformationProtectionSensitivityLabelsRequest{
	// ...
}


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

Example Usage: InformationProtectionSensitivityLabelClient.GetInformationProtectionSensitivityLabel

ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewUserIdInformationProtectionSensitivityLabelID("userId", "sensitivityLabelId")

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

Example Usage: InformationProtectionSensitivityLabelClient.GetInformationProtectionSensitivityLabelsCount

ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewUserID("userId")

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

Example Usage: InformationProtectionSensitivityLabelClient.ListInformationProtectionSensitivityLabels

ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewUserID("userId")

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

Example Usage: InformationProtectionSensitivityLabelClient.UpdateInformationProtectionSensitivityLabel

ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewUserIdInformationProtectionSensitivityLabelID("userId", "sensitivityLabelId")

payload := informationprotectionsensitivitylabel.SensitivityLabel{
	// ...
}


read, err := client.UpdateInformationProtectionSensitivityLabel(ctx, id, payload, informationprotectionsensitivitylabel.DefaultUpdateInformationProtectionSensitivityLabelOperationOptions())
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 CreateInformationProtectionSensitivityLabelOperationOptions

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

func (CreateInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (CreateInformationProtectionSensitivityLabelOperationOptions) ToOData

func (CreateInformationProtectionSensitivityLabelOperationOptions) ToQuery

type CreateInformationProtectionSensitivityLabelOperationResponse

type CreateInformationProtectionSensitivityLabelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.SensitivityLabel
}

type DeleteInformationProtectionSensitivityLabelOperationOptions

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

func (DeleteInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (DeleteInformationProtectionSensitivityLabelOperationOptions) ToOData

func (DeleteInformationProtectionSensitivityLabelOperationOptions) ToQuery

type DeleteInformationProtectionSensitivityLabelOperationResponse

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

type EvaluateInformationProtectionSensitivityLabelsOperationOptions

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

func (EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToHeaders

func (EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToOData

func (EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToQuery

type EvaluateInformationProtectionSensitivityLabelsOperationResponse

type EvaluateInformationProtectionSensitivityLabelsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.EvaluateLabelJobResponse
}

type EvaluateInformationProtectionSensitivityLabelsRequest

type EvaluateInformationProtectionSensitivityLabelsRequest struct {
	CurrentLabel             *beta.CurrentLabel              `json:"currentLabel,omitempty"`
	DiscoveredSensitiveTypes *[]beta.DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
}

type GetInformationProtectionSensitivityLabelOperationOptions

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

func (GetInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (GetInformationProtectionSensitivityLabelOperationOptions) ToOData

func (GetInformationProtectionSensitivityLabelOperationOptions) ToQuery

type GetInformationProtectionSensitivityLabelOperationResponse

type GetInformationProtectionSensitivityLabelOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.SensitivityLabel
}

type GetInformationProtectionSensitivityLabelsCountOperationOptions

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

func (GetInformationProtectionSensitivityLabelsCountOperationOptions) ToHeaders

func (GetInformationProtectionSensitivityLabelsCountOperationOptions) ToOData

func (GetInformationProtectionSensitivityLabelsCountOperationOptions) ToQuery

type GetInformationProtectionSensitivityLabelsCountOperationResponse

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

type InformationProtectionSensitivityLabelClient

type InformationProtectionSensitivityLabelClient struct {
	Client *msgraph.Client
}

func NewInformationProtectionSensitivityLabelClientWithBaseURI

func NewInformationProtectionSensitivityLabelClientWithBaseURI(sdkApi sdkEnv.Api) (*InformationProtectionSensitivityLabelClient, error)

func (InformationProtectionSensitivityLabelClient) CreateInformationProtectionSensitivityLabel

CreateInformationProtectionSensitivityLabel - Create new navigation property to sensitivityLabels for users

func (InformationProtectionSensitivityLabelClient) DeleteInformationProtectionSensitivityLabel

DeleteInformationProtectionSensitivityLabel - Delete navigation property sensitivityLabels for users

func (InformationProtectionSensitivityLabelClient) EvaluateInformationProtectionSensitivityLabels

EvaluateInformationProtectionSensitivityLabels - Invoke action evaluate

func (InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabel

GetInformationProtectionSensitivityLabel - Get sensitivityLabels from users

func (InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabelsCount

GetInformationProtectionSensitivityLabelsCount - Get the number of the resource

func (InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabels

ListInformationProtectionSensitivityLabels - Get sensitivityLabels from users

func (InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsComplete

ListInformationProtectionSensitivityLabelsComplete retrieves all the results into a single object

func (InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsCompleteMatchingPredicate

ListInformationProtectionSensitivityLabelsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (InformationProtectionSensitivityLabelClient) UpdateInformationProtectionSensitivityLabel

UpdateInformationProtectionSensitivityLabel - Update the navigation property sensitivityLabels in users

type ListInformationProtectionSensitivityLabelsCompleteResult

type ListInformationProtectionSensitivityLabelsCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.SensitivityLabel
}

type ListInformationProtectionSensitivityLabelsCustomPager

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

type ListInformationProtectionSensitivityLabelsOperationOptions

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

func (ListInformationProtectionSensitivityLabelsOperationOptions) ToOData

func (ListInformationProtectionSensitivityLabelsOperationOptions) ToQuery

type ListInformationProtectionSensitivityLabelsOperationResponse

type ListInformationProtectionSensitivityLabelsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.SensitivityLabel
}

type SensitivityLabelOperationPredicate

type SensitivityLabelOperationPredicate struct {
}

func (SensitivityLabelOperationPredicate) Matches

type UpdateInformationProtectionSensitivityLabelOperationOptions

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

func (UpdateInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (UpdateInformationProtectionSensitivityLabelOperationOptions) ToOData

func (UpdateInformationProtectionSensitivityLabelOperationOptions) ToQuery

type UpdateInformationProtectionSensitivityLabelOperationResponse

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