README ¶
github.com/hashicorp/go-azure-sdk/microsoft-graph/me/beta/informationprotectionsensitivitylabel
Documentation
The informationprotectionsensitivitylabel
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/informationprotectionsensitivitylabel"
Client Initialization
client := informationprotectionsensitivitylabel.NewInformationProtectionSensitivityLabelClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer
Example Usage: InformationProtectionSensitivityLabelClient.CreateInformationProtectionSensitivityLabel
ctx := context.TODO()
payload := informationprotectionsensitivitylabel.SensitivityLabel{
// ...
}
read, err := client.CreateInformationProtectionSensitivityLabel(ctx, 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.NewMeInformationProtectionSensitivityLabelID("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()
payload := informationprotectionsensitivitylabel.EvaluateInformationProtectionSensitivityLabelsRequest{
// ...
}
read, err := client.EvaluateInformationProtectionSensitivityLabels(ctx, 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.NewMeInformationProtectionSensitivityLabelID("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()
read, err := client.GetInformationProtectionSensitivityLabelsCount(ctx, 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()
// alternatively `client.ListInformationProtectionSensitivityLabels(ctx, informationprotectionsensitivitylabel.DefaultListInformationProtectionSensitivityLabelsOperationOptions())` can be used to do batched pagination
items, err := client.ListInformationProtectionSensitivityLabelsComplete(ctx, informationprotectionsensitivitylabel.DefaultListInformationProtectionSensitivityLabelsOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: InformationProtectionSensitivityLabelClient.UpdateInformationProtectionSensitivityLabel
ctx := context.TODO()
id := informationprotectionsensitivitylabel.NewMeInformationProtectionSensitivityLabelID("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 ¶
- type CreateInformationProtectionSensitivityLabelOperationOptions
- type CreateInformationProtectionSensitivityLabelOperationResponse
- type DeleteInformationProtectionSensitivityLabelOperationOptions
- type DeleteInformationProtectionSensitivityLabelOperationResponse
- type EvaluateInformationProtectionSensitivityLabelsOperationOptions
- type EvaluateInformationProtectionSensitivityLabelsOperationResponse
- type EvaluateInformationProtectionSensitivityLabelsRequest
- type GetInformationProtectionSensitivityLabelOperationOptions
- type GetInformationProtectionSensitivityLabelOperationResponse
- type GetInformationProtectionSensitivityLabelsCountOperationOptions
- type GetInformationProtectionSensitivityLabelsCountOperationResponse
- type InformationProtectionSensitivityLabelClient
- func (c InformationProtectionSensitivityLabelClient) CreateInformationProtectionSensitivityLabel(ctx context.Context, input beta.SensitivityLabel, ...) (result CreateInformationProtectionSensitivityLabelOperationResponse, err error)
- func (c InformationProtectionSensitivityLabelClient) DeleteInformationProtectionSensitivityLabel(ctx context.Context, id beta.MeInformationProtectionSensitivityLabelId, ...) (result DeleteInformationProtectionSensitivityLabelOperationResponse, err error)
- func (c InformationProtectionSensitivityLabelClient) EvaluateInformationProtectionSensitivityLabels(ctx context.Context, ...) (result EvaluateInformationProtectionSensitivityLabelsOperationResponse, ...)
- func (c InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabel(ctx context.Context, id beta.MeInformationProtectionSensitivityLabelId, ...) (result GetInformationProtectionSensitivityLabelOperationResponse, err error)
- func (c InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabelsCount(ctx context.Context, ...) (result GetInformationProtectionSensitivityLabelsCountOperationResponse, ...)
- func (c InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabels(ctx context.Context, ...) (result ListInformationProtectionSensitivityLabelsOperationResponse, err error)
- func (c InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsComplete(ctx context.Context, ...) (ListInformationProtectionSensitivityLabelsCompleteResult, error)
- func (c InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsCompleteMatchingPredicate(ctx context.Context, ...) (result ListInformationProtectionSensitivityLabelsCompleteResult, err error)
- func (c InformationProtectionSensitivityLabelClient) UpdateInformationProtectionSensitivityLabel(ctx context.Context, id beta.MeInformationProtectionSensitivityLabelId, ...) (result UpdateInformationProtectionSensitivityLabelOperationResponse, err error)
- type ListInformationProtectionSensitivityLabelsCompleteResult
- type ListInformationProtectionSensitivityLabelsCustomPager
- type ListInformationProtectionSensitivityLabelsOperationOptions
- type ListInformationProtectionSensitivityLabelsOperationResponse
- type SensitivityLabelOperationPredicate
- type UpdateInformationProtectionSensitivityLabelOperationOptions
- type UpdateInformationProtectionSensitivityLabelOperationResponse
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 DefaultCreateInformationProtectionSensitivityLabelOperationOptions ¶
func DefaultCreateInformationProtectionSensitivityLabelOperationOptions() CreateInformationProtectionSensitivityLabelOperationOptions
func (CreateInformationProtectionSensitivityLabelOperationOptions) ToHeaders ¶
func (o CreateInformationProtectionSensitivityLabelOperationOptions) ToHeaders() *client.Headers
func (CreateInformationProtectionSensitivityLabelOperationOptions) ToOData ¶
func (o CreateInformationProtectionSensitivityLabelOperationOptions) ToOData() *odata.Query
func (CreateInformationProtectionSensitivityLabelOperationOptions) ToQuery ¶
func (o CreateInformationProtectionSensitivityLabelOperationOptions) ToQuery() *client.QueryParams
type DeleteInformationProtectionSensitivityLabelOperationOptions ¶
type DeleteInformationProtectionSensitivityLabelOperationOptions struct { IfMatch *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultDeleteInformationProtectionSensitivityLabelOperationOptions ¶
func DefaultDeleteInformationProtectionSensitivityLabelOperationOptions() DeleteInformationProtectionSensitivityLabelOperationOptions
func (DeleteInformationProtectionSensitivityLabelOperationOptions) ToHeaders ¶
func (o DeleteInformationProtectionSensitivityLabelOperationOptions) ToHeaders() *client.Headers
func (DeleteInformationProtectionSensitivityLabelOperationOptions) ToOData ¶
func (o DeleteInformationProtectionSensitivityLabelOperationOptions) ToOData() *odata.Query
func (DeleteInformationProtectionSensitivityLabelOperationOptions) ToQuery ¶
func (o DeleteInformationProtectionSensitivityLabelOperationOptions) ToQuery() *client.QueryParams
type EvaluateInformationProtectionSensitivityLabelsOperationOptions ¶
type EvaluateInformationProtectionSensitivityLabelsOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultEvaluateInformationProtectionSensitivityLabelsOperationOptions ¶
func DefaultEvaluateInformationProtectionSensitivityLabelsOperationOptions() EvaluateInformationProtectionSensitivityLabelsOperationOptions
func (EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToHeaders ¶
func (o EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToHeaders() *client.Headers
func (EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToOData ¶
func (o EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToOData() *odata.Query
func (EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToQuery ¶
func (o EvaluateInformationProtectionSensitivityLabelsOperationOptions) ToQuery() *client.QueryParams
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 DefaultGetInformationProtectionSensitivityLabelOperationOptions ¶
func DefaultGetInformationProtectionSensitivityLabelOperationOptions() GetInformationProtectionSensitivityLabelOperationOptions
func (GetInformationProtectionSensitivityLabelOperationOptions) ToHeaders ¶
func (o GetInformationProtectionSensitivityLabelOperationOptions) ToHeaders() *client.Headers
func (GetInformationProtectionSensitivityLabelOperationOptions) ToOData ¶
func (o GetInformationProtectionSensitivityLabelOperationOptions) ToOData() *odata.Query
func (GetInformationProtectionSensitivityLabelOperationOptions) ToQuery ¶
func (o GetInformationProtectionSensitivityLabelOperationOptions) ToQuery() *client.QueryParams
type GetInformationProtectionSensitivityLabelsCountOperationOptions ¶
type GetInformationProtectionSensitivityLabelsCountOperationOptions struct { Filter *string Metadata *odata.Metadata RetryFunc client.RequestRetryFunc Search *string }
func DefaultGetInformationProtectionSensitivityLabelsCountOperationOptions ¶
func DefaultGetInformationProtectionSensitivityLabelsCountOperationOptions() GetInformationProtectionSensitivityLabelsCountOperationOptions
func (GetInformationProtectionSensitivityLabelsCountOperationOptions) ToHeaders ¶
func (o GetInformationProtectionSensitivityLabelsCountOperationOptions) ToHeaders() *client.Headers
func (GetInformationProtectionSensitivityLabelsCountOperationOptions) ToOData ¶
func (o GetInformationProtectionSensitivityLabelsCountOperationOptions) ToOData() *odata.Query
func (GetInformationProtectionSensitivityLabelsCountOperationOptions) ToQuery ¶
func (o GetInformationProtectionSensitivityLabelsCountOperationOptions) ToQuery() *client.QueryParams
type InformationProtectionSensitivityLabelClient ¶
func NewInformationProtectionSensitivityLabelClientWithBaseURI ¶
func NewInformationProtectionSensitivityLabelClientWithBaseURI(sdkApi sdkEnv.Api) (*InformationProtectionSensitivityLabelClient, error)
func (InformationProtectionSensitivityLabelClient) CreateInformationProtectionSensitivityLabel ¶
func (c InformationProtectionSensitivityLabelClient) CreateInformationProtectionSensitivityLabel(ctx context.Context, input beta.SensitivityLabel, options CreateInformationProtectionSensitivityLabelOperationOptions) (result CreateInformationProtectionSensitivityLabelOperationResponse, err error)
CreateInformationProtectionSensitivityLabel - Create new navigation property to sensitivityLabels for me
func (InformationProtectionSensitivityLabelClient) DeleteInformationProtectionSensitivityLabel ¶
func (c InformationProtectionSensitivityLabelClient) DeleteInformationProtectionSensitivityLabel(ctx context.Context, id beta.MeInformationProtectionSensitivityLabelId, options DeleteInformationProtectionSensitivityLabelOperationOptions) (result DeleteInformationProtectionSensitivityLabelOperationResponse, err error)
DeleteInformationProtectionSensitivityLabel - Delete navigation property sensitivityLabels for me
func (InformationProtectionSensitivityLabelClient) EvaluateInformationProtectionSensitivityLabels ¶
func (c InformationProtectionSensitivityLabelClient) EvaluateInformationProtectionSensitivityLabels(ctx context.Context, input EvaluateInformationProtectionSensitivityLabelsRequest, options EvaluateInformationProtectionSensitivityLabelsOperationOptions) (result EvaluateInformationProtectionSensitivityLabelsOperationResponse, err error)
EvaluateInformationProtectionSensitivityLabels - Invoke action evaluate
func (InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabel ¶
func (c InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabel(ctx context.Context, id beta.MeInformationProtectionSensitivityLabelId, options GetInformationProtectionSensitivityLabelOperationOptions) (result GetInformationProtectionSensitivityLabelOperationResponse, err error)
GetInformationProtectionSensitivityLabel - Get sensitivityLabels from me
func (InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabelsCount ¶
func (c InformationProtectionSensitivityLabelClient) GetInformationProtectionSensitivityLabelsCount(ctx context.Context, options GetInformationProtectionSensitivityLabelsCountOperationOptions) (result GetInformationProtectionSensitivityLabelsCountOperationResponse, err error)
GetInformationProtectionSensitivityLabelsCount - Get the number of the resource
func (InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabels ¶
func (c InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabels(ctx context.Context, options ListInformationProtectionSensitivityLabelsOperationOptions) (result ListInformationProtectionSensitivityLabelsOperationResponse, err error)
ListInformationProtectionSensitivityLabels - Get sensitivityLabels from me
func (InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsComplete ¶
func (c InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsComplete(ctx context.Context, options ListInformationProtectionSensitivityLabelsOperationOptions) (ListInformationProtectionSensitivityLabelsCompleteResult, error)
ListInformationProtectionSensitivityLabelsComplete retrieves all the results into a single object
func (InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsCompleteMatchingPredicate ¶
func (c InformationProtectionSensitivityLabelClient) ListInformationProtectionSensitivityLabelsCompleteMatchingPredicate(ctx context.Context, options ListInformationProtectionSensitivityLabelsOperationOptions, predicate SensitivityLabelOperationPredicate) (result ListInformationProtectionSensitivityLabelsCompleteResult, err error)
ListInformationProtectionSensitivityLabelsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (InformationProtectionSensitivityLabelClient) UpdateInformationProtectionSensitivityLabel ¶
func (c InformationProtectionSensitivityLabelClient) UpdateInformationProtectionSensitivityLabel(ctx context.Context, id beta.MeInformationProtectionSensitivityLabelId, input beta.SensitivityLabel, options UpdateInformationProtectionSensitivityLabelOperationOptions) (result UpdateInformationProtectionSensitivityLabelOperationResponse, err error)
UpdateInformationProtectionSensitivityLabel - Update the navigation property sensitivityLabels in me
type ListInformationProtectionSensitivityLabelsCompleteResult ¶
type ListInformationProtectionSensitivityLabelsCompleteResult struct { LatestHttpResponse *http.Response Items []beta.SensitivityLabel }
type ListInformationProtectionSensitivityLabelsCustomPager ¶
type ListInformationProtectionSensitivityLabelsCustomPager struct {
NextLink *odata.Link `json:"@odata.nextLink"`
}
func (*ListInformationProtectionSensitivityLabelsCustomPager) NextPageLink ¶
func (p *ListInformationProtectionSensitivityLabelsCustomPager) NextPageLink() *odata.Link
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 DefaultListInformationProtectionSensitivityLabelsOperationOptions ¶
func DefaultListInformationProtectionSensitivityLabelsOperationOptions() ListInformationProtectionSensitivityLabelsOperationOptions
func (ListInformationProtectionSensitivityLabelsOperationOptions) ToHeaders ¶
func (o ListInformationProtectionSensitivityLabelsOperationOptions) ToHeaders() *client.Headers
func (ListInformationProtectionSensitivityLabelsOperationOptions) ToOData ¶
func (o ListInformationProtectionSensitivityLabelsOperationOptions) ToOData() *odata.Query
func (ListInformationProtectionSensitivityLabelsOperationOptions) ToQuery ¶
func (o ListInformationProtectionSensitivityLabelsOperationOptions) ToQuery() *client.QueryParams
type SensitivityLabelOperationPredicate ¶
type SensitivityLabelOperationPredicate struct { }
func (SensitivityLabelOperationPredicate) Matches ¶
func (p SensitivityLabelOperationPredicate) Matches(input beta.SensitivityLabel) bool
type UpdateInformationProtectionSensitivityLabelOperationOptions ¶
type UpdateInformationProtectionSensitivityLabelOperationOptions struct { Metadata *odata.Metadata RetryFunc client.RequestRetryFunc }
func DefaultUpdateInformationProtectionSensitivityLabelOperationOptions ¶
func DefaultUpdateInformationProtectionSensitivityLabelOperationOptions() UpdateInformationProtectionSensitivityLabelOperationOptions
func (UpdateInformationProtectionSensitivityLabelOperationOptions) ToHeaders ¶
func (o UpdateInformationProtectionSensitivityLabelOperationOptions) ToHeaders() *client.Headers
func (UpdateInformationProtectionSensitivityLabelOperationOptions) ToOData ¶
func (o UpdateInformationProtectionSensitivityLabelOperationOptions) ToOData() *odata.Query
func (UpdateInformationProtectionSensitivityLabelOperationOptions) ToQuery ¶
func (o UpdateInformationProtectionSensitivityLabelOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- method_createinformationprotectionsensitivitylabel.go
- method_deleteinformationprotectionsensitivitylabel.go
- method_evaluateinformationprotectionsensitivitylabels.go
- method_getinformationprotectionsensitivitylabel.go
- method_getinformationprotectionsensitivitylabelscount.go
- method_listinformationprotectionsensitivitylabels.go
- method_updateinformationprotectionsensitivitylabel.go
- model_evaluateinformationprotectionsensitivitylabelsrequest.go
- predicates.go
- version.go