informationprotectionsensitivitylabelsublabel

package
v0.20241111.1164443 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

README

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

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

Client Initialization

client := informationprotectionsensitivitylabelsublabel.NewInformationProtectionSensitivityLabelSublabelClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: InformationProtectionSensitivityLabelSublabelClient.CreateInformationProtectionSensitivityLabelSublabel

ctx := context.TODO()
id := informationprotectionsensitivitylabelsublabel.NewMeInformationProtectionSensitivityLabelID("sensitivityLabelId")

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


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

Example Usage: InformationProtectionSensitivityLabelSublabelClient.DeleteInformationProtectionSensitivityLabelSublabel

ctx := context.TODO()
id := informationprotectionsensitivitylabelsublabel.NewMeInformationProtectionSensitivityLabelIdSublabelID("sensitivityLabelId", "sensitivityLabelId1")

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

Example Usage: InformationProtectionSensitivityLabelSublabelClient.EvaluateInformationProtectionSensitivityLabelSublabels

ctx := context.TODO()
id := informationprotectionsensitivitylabelsublabel.NewMeInformationProtectionSensitivityLabelID("sensitivityLabelId")

payload := informationprotectionsensitivitylabelsublabel.EvaluateInformationProtectionSensitivityLabelSublabelsRequest{
	// ...
}


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

Example Usage: InformationProtectionSensitivityLabelSublabelClient.GetInformationProtectionSensitivityLabelSublabel

ctx := context.TODO()
id := informationprotectionsensitivitylabelsublabel.NewMeInformationProtectionSensitivityLabelIdSublabelID("sensitivityLabelId", "sensitivityLabelId1")

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

Example Usage: InformationProtectionSensitivityLabelSublabelClient.GetInformationProtectionSensitivityLabelSublabelsCount

ctx := context.TODO()
id := informationprotectionsensitivitylabelsublabel.NewMeInformationProtectionSensitivityLabelID("sensitivityLabelId")

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

Example Usage: InformationProtectionSensitivityLabelSublabelClient.ListInformationProtectionSensitivityLabelSublabels

ctx := context.TODO()
id := informationprotectionsensitivitylabelsublabel.NewMeInformationProtectionSensitivityLabelID("sensitivityLabelId")

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

Example Usage: InformationProtectionSensitivityLabelSublabelClient.UpdateInformationProtectionSensitivityLabelSublabel

ctx := context.TODO()
id := informationprotectionsensitivitylabelsublabel.NewMeInformationProtectionSensitivityLabelIdSublabelID("sensitivityLabelId", "sensitivityLabelId1")

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


read, err := client.UpdateInformationProtectionSensitivityLabelSublabel(ctx, id, payload, informationprotectionsensitivitylabelsublabel.DefaultUpdateInformationProtectionSensitivityLabelSublabelOperationOptions())
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 CreateInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (CreateInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (CreateInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (CreateInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type CreateInformationProtectionSensitivityLabelSublabelOperationResponse

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

type DeleteInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (DeleteInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (DeleteInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (DeleteInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type DeleteInformationProtectionSensitivityLabelSublabelOperationResponse

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

type EvaluateInformationProtectionSensitivityLabelSublabelsOperationOptions

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

func (EvaluateInformationProtectionSensitivityLabelSublabelsOperationOptions) ToHeaders

func (EvaluateInformationProtectionSensitivityLabelSublabelsOperationOptions) ToOData

func (EvaluateInformationProtectionSensitivityLabelSublabelsOperationOptions) ToQuery

type EvaluateInformationProtectionSensitivityLabelSublabelsOperationResponse

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

type EvaluateInformationProtectionSensitivityLabelSublabelsRequest

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

type GetInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (GetInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (GetInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (GetInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type GetInformationProtectionSensitivityLabelSublabelOperationResponse

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

type GetInformationProtectionSensitivityLabelSublabelsCountOperationOptions

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

func (GetInformationProtectionSensitivityLabelSublabelsCountOperationOptions) ToHeaders

func (GetInformationProtectionSensitivityLabelSublabelsCountOperationOptions) ToOData

func (GetInformationProtectionSensitivityLabelSublabelsCountOperationOptions) ToQuery

type GetInformationProtectionSensitivityLabelSublabelsCountOperationResponse

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

type InformationProtectionSensitivityLabelSublabelClient

type InformationProtectionSensitivityLabelSublabelClient struct {
	Client *msgraph.Client
}

func NewInformationProtectionSensitivityLabelSublabelClientWithBaseURI

func NewInformationProtectionSensitivityLabelSublabelClientWithBaseURI(sdkApi sdkEnv.Api) (*InformationProtectionSensitivityLabelSublabelClient, error)

func (InformationProtectionSensitivityLabelSublabelClient) CreateInformationProtectionSensitivityLabelSublabel

CreateInformationProtectionSensitivityLabelSublabel - Create new navigation property to sublabels for me

func (InformationProtectionSensitivityLabelSublabelClient) DeleteInformationProtectionSensitivityLabelSublabel

DeleteInformationProtectionSensitivityLabelSublabel - Delete navigation property sublabels for me

func (InformationProtectionSensitivityLabelSublabelClient) EvaluateInformationProtectionSensitivityLabelSublabels

EvaluateInformationProtectionSensitivityLabelSublabels - Invoke action evaluate

func (InformationProtectionSensitivityLabelSublabelClient) GetInformationProtectionSensitivityLabelSublabel

GetInformationProtectionSensitivityLabelSublabel - Get sublabels from me

func (InformationProtectionSensitivityLabelSublabelClient) GetInformationProtectionSensitivityLabelSublabelsCount

GetInformationProtectionSensitivityLabelSublabelsCount - Get the number of the resource

func (InformationProtectionSensitivityLabelSublabelClient) ListInformationProtectionSensitivityLabelSublabels

ListInformationProtectionSensitivityLabelSublabels - Get sublabels from me

func (InformationProtectionSensitivityLabelSublabelClient) ListInformationProtectionSensitivityLabelSublabelsComplete

ListInformationProtectionSensitivityLabelSublabelsComplete retrieves all the results into a single object

func (InformationProtectionSensitivityLabelSublabelClient) ListInformationProtectionSensitivityLabelSublabelsCompleteMatchingPredicate

ListInformationProtectionSensitivityLabelSublabelsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (InformationProtectionSensitivityLabelSublabelClient) UpdateInformationProtectionSensitivityLabelSublabel

UpdateInformationProtectionSensitivityLabelSublabel - Update the navigation property sublabels in me

type ListInformationProtectionSensitivityLabelSublabelsCompleteResult

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

type ListInformationProtectionSensitivityLabelSublabelsCustomPager

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

type ListInformationProtectionSensitivityLabelSublabelsOperationOptions

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

func (ListInformationProtectionSensitivityLabelSublabelsOperationOptions) ToOData

func (ListInformationProtectionSensitivityLabelSublabelsOperationOptions) ToQuery

type ListInformationProtectionSensitivityLabelSublabelsOperationResponse

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

type SensitivityLabelOperationPredicate

type SensitivityLabelOperationPredicate struct {
}

func (SensitivityLabelOperationPredicate) Matches

type UpdateInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (UpdateInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (UpdateInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (UpdateInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type UpdateInformationProtectionSensitivityLabelSublabelOperationResponse

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