siteinformationprotectionsensitivitylabelsublabel

package
v0.20241126.2320 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := siteinformationprotectionsensitivitylabelsublabel.NewSiteInformationProtectionSensitivityLabelSublabelClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteInformationProtectionSensitivityLabelSublabelClient.CreateSiteInformationProtectionSensitivityLabelSublabel

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

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


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

Example Usage: SiteInformationProtectionSensitivityLabelSublabelClient.DeleteSiteInformationProtectionSensitivityLabelSublabel

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabelsublabel.NewGroupIdSiteIdInformationProtectionSensitivityLabelIdSublabelID("groupId", "siteId", "sensitivityLabelId", "sensitivityLabelId1")

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

Example Usage: SiteInformationProtectionSensitivityLabelSublabelClient.EvaluateSiteInformationProtectionSensitivityLabelSublabels

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

payload := siteinformationprotectionsensitivitylabelsublabel.EvaluateSiteInformationProtectionSensitivityLabelSublabelsRequest{
	// ...
}


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

Example Usage: SiteInformationProtectionSensitivityLabelSublabelClient.GetSiteInformationProtectionSensitivityLabelSublabel

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabelsublabel.NewGroupIdSiteIdInformationProtectionSensitivityLabelIdSublabelID("groupId", "siteId", "sensitivityLabelId", "sensitivityLabelId1")

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

Example Usage: SiteInformationProtectionSensitivityLabelSublabelClient.GetSiteInformationProtectionSensitivityLabelSublabelsCount

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

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

Example Usage: SiteInformationProtectionSensitivityLabelSublabelClient.ListSiteInformationProtectionSensitivityLabelSublabels

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

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

Example Usage: SiteInformationProtectionSensitivityLabelSublabelClient.UpdateSiteInformationProtectionSensitivityLabelSublabel

ctx := context.TODO()
id := siteinformationprotectionsensitivitylabelsublabel.NewGroupIdSiteIdInformationProtectionSensitivityLabelIdSublabelID("groupId", "siteId", "sensitivityLabelId", "sensitivityLabelId1")

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


read, err := client.UpdateSiteInformationProtectionSensitivityLabelSublabel(ctx, id, payload, siteinformationprotectionsensitivitylabelsublabel.DefaultUpdateSiteInformationProtectionSensitivityLabelSublabelOperationOptions())
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 CreateSiteInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (CreateSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (CreateSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (CreateSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type CreateSiteInformationProtectionSensitivityLabelSublabelOperationResponse

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

type DeleteSiteInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (DeleteSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (DeleteSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (DeleteSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type DeleteSiteInformationProtectionSensitivityLabelSublabelOperationResponse

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

type EvaluateSiteInformationProtectionSensitivityLabelSublabelsOperationOptions

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

func (EvaluateSiteInformationProtectionSensitivityLabelSublabelsOperationOptions) ToHeaders

func (EvaluateSiteInformationProtectionSensitivityLabelSublabelsOperationOptions) ToOData

func (EvaluateSiteInformationProtectionSensitivityLabelSublabelsOperationOptions) ToQuery

type EvaluateSiteInformationProtectionSensitivityLabelSublabelsOperationResponse

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

type EvaluateSiteInformationProtectionSensitivityLabelSublabelsRequest

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

type GetSiteInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (GetSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (GetSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (GetSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type GetSiteInformationProtectionSensitivityLabelSublabelOperationResponse

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

type GetSiteInformationProtectionSensitivityLabelSublabelsCountOperationOptions

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

func (GetSiteInformationProtectionSensitivityLabelSublabelsCountOperationOptions) ToHeaders

func (GetSiteInformationProtectionSensitivityLabelSublabelsCountOperationOptions) ToOData

func (GetSiteInformationProtectionSensitivityLabelSublabelsCountOperationOptions) ToQuery

type GetSiteInformationProtectionSensitivityLabelSublabelsCountOperationResponse

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

type ListSiteInformationProtectionSensitivityLabelSublabelsCompleteResult

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

type ListSiteInformationProtectionSensitivityLabelSublabelsCustomPager

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

type ListSiteInformationProtectionSensitivityLabelSublabelsOperationOptions

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

func (ListSiteInformationProtectionSensitivityLabelSublabelsOperationOptions) ToOData

func (ListSiteInformationProtectionSensitivityLabelSublabelsOperationOptions) ToQuery

type ListSiteInformationProtectionSensitivityLabelSublabelsOperationResponse

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

type SensitivityLabelOperationPredicate

type SensitivityLabelOperationPredicate struct {
}

func (SensitivityLabelOperationPredicate) Matches

type SiteInformationProtectionSensitivityLabelSublabelClient

type SiteInformationProtectionSensitivityLabelSublabelClient struct {
	Client *msgraph.Client
}

func NewSiteInformationProtectionSensitivityLabelSublabelClientWithBaseURI

func NewSiteInformationProtectionSensitivityLabelSublabelClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteInformationProtectionSensitivityLabelSublabelClient, error)

func (SiteInformationProtectionSensitivityLabelSublabelClient) CreateSiteInformationProtectionSensitivityLabelSublabel

CreateSiteInformationProtectionSensitivityLabelSublabel - Create new navigation property to sublabels for groups

func (SiteInformationProtectionSensitivityLabelSublabelClient) DeleteSiteInformationProtectionSensitivityLabelSublabel

DeleteSiteInformationProtectionSensitivityLabelSublabel - Delete navigation property sublabels for groups

func (SiteInformationProtectionSensitivityLabelSublabelClient) GetSiteInformationProtectionSensitivityLabelSublabel

GetSiteInformationProtectionSensitivityLabelSublabel - Get sublabels from groups

func (SiteInformationProtectionSensitivityLabelSublabelClient) GetSiteInformationProtectionSensitivityLabelSublabelsCount

GetSiteInformationProtectionSensitivityLabelSublabelsCount - Get the number of the resource

func (SiteInformationProtectionSensitivityLabelSublabelClient) ListSiteInformationProtectionSensitivityLabelSublabels

ListSiteInformationProtectionSensitivityLabelSublabels - Get sublabels from groups

func (SiteInformationProtectionSensitivityLabelSublabelClient) ListSiteInformationProtectionSensitivityLabelSublabelsComplete

ListSiteInformationProtectionSensitivityLabelSublabelsComplete retrieves all the results into a single object

func (SiteInformationProtectionSensitivityLabelSublabelClient) ListSiteInformationProtectionSensitivityLabelSublabelsCompleteMatchingPredicate

ListSiteInformationProtectionSensitivityLabelSublabelsCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteInformationProtectionSensitivityLabelSublabelClient) UpdateSiteInformationProtectionSensitivityLabelSublabel

UpdateSiteInformationProtectionSensitivityLabelSublabel - Update the navigation property sublabels in groups

type UpdateSiteInformationProtectionSensitivityLabelSublabelOperationOptions

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

func (UpdateSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToHeaders

func (UpdateSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToOData

func (UpdateSiteInformationProtectionSensitivityLabelSublabelOperationOptions) ToQuery

type UpdateSiteInformationProtectionSensitivityLabelSublabelOperationResponse

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