siteinformationprotectionsensitivitylabel

package
v0.20241128.1112539 Latest Latest
Warning

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

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

README

github.com/hashicorp/go-azure-sdk/microsoft-graph/groups/beta/siteinformationprotectionsensitivitylabel Documentation

The siteinformationprotectionsensitivitylabel SDK allows for interaction with Microsoft Graph groups (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/groups/beta/siteinformationprotectionsensitivitylabel"

Client Initialization

client := siteinformationprotectionsensitivitylabel.NewSiteInformationProtectionSensitivityLabelClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteInformationProtectionSensitivityLabelClient.CreateSiteInformationProtectionSensitivityLabel

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabel.NewGroupIdSiteID("groupId", "siteId")

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


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

Example Usage: SiteInformationProtectionSensitivityLabelClient.DeleteSiteInformationProtectionSensitivityLabel

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabel.NewGroupIdSiteIdInformationProtectionSensitivityLabelID("groupId", "siteId", "sensitivityLabelId")

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

Example Usage: SiteInformationProtectionSensitivityLabelClient.EvaluateSiteInformationProtectionSensitivityLabels

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabel.NewGroupIdSiteID("groupId", "siteId")

payload := siteinformationprotectionsensitivitylabel.EvaluateSiteInformationProtectionSensitivityLabelsRequest{
	// ...
}


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

Example Usage: SiteInformationProtectionSensitivityLabelClient.GetSiteInformationProtectionSensitivityLabel

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabel.NewGroupIdSiteIdInformationProtectionSensitivityLabelID("groupId", "siteId", "sensitivityLabelId")

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

Example Usage: SiteInformationProtectionSensitivityLabelClient.GetSiteInformationProtectionSensitivityLabelsCount

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabel.NewGroupIdSiteID("groupId", "siteId")

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

Example Usage: SiteInformationProtectionSensitivityLabelClient.ListSiteInformationProtectionSensitivityLabels

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabel.NewGroupIdSiteID("groupId", "siteId")

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

Example Usage: SiteInformationProtectionSensitivityLabelClient.UpdateSiteInformationProtectionSensitivityLabel

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabel.NewGroupIdSiteIdInformationProtectionSensitivityLabelID("groupId", "siteId", "sensitivityLabelId")

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


read, err := client.UpdateSiteInformationProtectionSensitivityLabel(ctx, id, payload, siteinformationprotectionsensitivitylabel.DefaultUpdateSiteInformationProtectionSensitivityLabelOperationOptions())
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 CreateSiteInformationProtectionSensitivityLabelOperationOptions

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

func (CreateSiteInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (CreateSiteInformationProtectionSensitivityLabelOperationOptions) ToOData

func (CreateSiteInformationProtectionSensitivityLabelOperationOptions) ToQuery

type CreateSiteInformationProtectionSensitivityLabelOperationResponse

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

type DeleteSiteInformationProtectionSensitivityLabelOperationOptions

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

func (DeleteSiteInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (DeleteSiteInformationProtectionSensitivityLabelOperationOptions) ToOData

func (DeleteSiteInformationProtectionSensitivityLabelOperationOptions) ToQuery

type DeleteSiteInformationProtectionSensitivityLabelOperationResponse

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

type EvaluateSiteInformationProtectionSensitivityLabelsOperationOptions

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

func (EvaluateSiteInformationProtectionSensitivityLabelsOperationOptions) ToHeaders

func (EvaluateSiteInformationProtectionSensitivityLabelsOperationOptions) ToOData

func (EvaluateSiteInformationProtectionSensitivityLabelsOperationOptions) ToQuery

type EvaluateSiteInformationProtectionSensitivityLabelsOperationResponse

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

type EvaluateSiteInformationProtectionSensitivityLabelsRequest

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

type GetSiteInformationProtectionSensitivityLabelOperationOptions

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

func (GetSiteInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (GetSiteInformationProtectionSensitivityLabelOperationOptions) ToOData

func (GetSiteInformationProtectionSensitivityLabelOperationOptions) ToQuery

type GetSiteInformationProtectionSensitivityLabelOperationResponse

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

type GetSiteInformationProtectionSensitivityLabelsCountOperationOptions

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

func (GetSiteInformationProtectionSensitivityLabelsCountOperationOptions) ToHeaders

func (GetSiteInformationProtectionSensitivityLabelsCountOperationOptions) ToOData

func (GetSiteInformationProtectionSensitivityLabelsCountOperationOptions) ToQuery

type GetSiteInformationProtectionSensitivityLabelsCountOperationResponse

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

type ListSiteInformationProtectionSensitivityLabelsCompleteResult

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

type ListSiteInformationProtectionSensitivityLabelsCustomPager

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

type ListSiteInformationProtectionSensitivityLabelsOperationOptions

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

func (ListSiteInformationProtectionSensitivityLabelsOperationOptions) ToOData

func (ListSiteInformationProtectionSensitivityLabelsOperationOptions) ToQuery

type ListSiteInformationProtectionSensitivityLabelsOperationResponse

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

type SensitivityLabelOperationPredicate

type SensitivityLabelOperationPredicate struct {
}

func (SensitivityLabelOperationPredicate) Matches

type SiteInformationProtectionSensitivityLabelClient

type SiteInformationProtectionSensitivityLabelClient struct {
	Client *msgraph.Client
}

func NewSiteInformationProtectionSensitivityLabelClientWithBaseURI

func NewSiteInformationProtectionSensitivityLabelClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteInformationProtectionSensitivityLabelClient, error)

func (SiteInformationProtectionSensitivityLabelClient) CreateSiteInformationProtectionSensitivityLabel

CreateSiteInformationProtectionSensitivityLabel - Create new navigation property to sensitivityLabels for groups

func (SiteInformationProtectionSensitivityLabelClient) DeleteSiteInformationProtectionSensitivityLabel

DeleteSiteInformationProtectionSensitivityLabel - Delete navigation property sensitivityLabels for groups

func (SiteInformationProtectionSensitivityLabelClient) EvaluateSiteInformationProtectionSensitivityLabels

EvaluateSiteInformationProtectionSensitivityLabels - Invoke action evaluate

func (SiteInformationProtectionSensitivityLabelClient) GetSiteInformationProtectionSensitivityLabel

GetSiteInformationProtectionSensitivityLabel - Get sensitivityLabels from groups

func (SiteInformationProtectionSensitivityLabelClient) GetSiteInformationProtectionSensitivityLabelsCount

GetSiteInformationProtectionSensitivityLabelsCount - Get the number of the resource

func (SiteInformationProtectionSensitivityLabelClient) ListSiteInformationProtectionSensitivityLabels

ListSiteInformationProtectionSensitivityLabels - Get sensitivityLabels from groups

func (SiteInformationProtectionSensitivityLabelClient) ListSiteInformationProtectionSensitivityLabelsComplete

ListSiteInformationProtectionSensitivityLabelsComplete retrieves all the results into a single object

func (SiteInformationProtectionSensitivityLabelClient) ListSiteInformationProtectionSensitivityLabelsCompleteMatchingPredicate

ListSiteInformationProtectionSensitivityLabelsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteInformationProtectionSensitivityLabelClient) UpdateSiteInformationProtectionSensitivityLabel

UpdateSiteInformationProtectionSensitivityLabel - Update the navigation property sensitivityLabels in groups

type UpdateSiteInformationProtectionSensitivityLabelOperationOptions

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

func (UpdateSiteInformationProtectionSensitivityLabelOperationOptions) ToHeaders

func (UpdateSiteInformationProtectionSensitivityLabelOperationOptions) ToOData

func (UpdateSiteInformationProtectionSensitivityLabelOperationOptions) ToQuery

type UpdateSiteInformationProtectionSensitivityLabelOperationResponse

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