informationprotectiondatalosspreventionpolicy

package
v0.20241025.1143247 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

README

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

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

Client Initialization

client := informationprotectiondatalosspreventionpolicy.NewInformationProtectionDataLossPreventionPolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: InformationProtectionDataLossPreventionPolicyClient.CreateInformationProtectionDataLossPreventionPolicy

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

payload := informationprotectiondatalosspreventionpolicy.DataLossPreventionPolicy{
	// ...
}


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

Example Usage: InformationProtectionDataLossPreventionPolicyClient.DeleteInformationProtectionDataLossPreventionPolicy

ctx := context.TODO()
id := informationprotectiondatalosspreventionpolicy.NewUserIdInformationProtectionDataLossPreventionPolicyID("userId", "dataLossPreventionPolicyId")

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

Example Usage: InformationProtectionDataLossPreventionPolicyClient.EvaluateInformationProtectionDataLossPreventionPolicies

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

payload := informationprotectiondatalosspreventionpolicy.EvaluateInformationProtectionDataLossPreventionPoliciesRequest{
	// ...
}


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

Example Usage: InformationProtectionDataLossPreventionPolicyClient.GetInformationProtectionDataLossPreventionPoliciesCount

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

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

Example Usage: InformationProtectionDataLossPreventionPolicyClient.GetInformationProtectionDataLossPreventionPolicy

ctx := context.TODO()
id := informationprotectiondatalosspreventionpolicy.NewUserIdInformationProtectionDataLossPreventionPolicyID("userId", "dataLossPreventionPolicyId")

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

Example Usage: InformationProtectionDataLossPreventionPolicyClient.ListInformationProtectionDataLossPreventionPolicies

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

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

Example Usage: InformationProtectionDataLossPreventionPolicyClient.UpdateInformationProtectionDataLossPreventionPolicy

ctx := context.TODO()
id := informationprotectiondatalosspreventionpolicy.NewUserIdInformationProtectionDataLossPreventionPolicyID("userId", "dataLossPreventionPolicyId")

payload := informationprotectiondatalosspreventionpolicy.DataLossPreventionPolicy{
	// ...
}


read, err := client.UpdateInformationProtectionDataLossPreventionPolicy(ctx, id, payload, informationprotectiondatalosspreventionpolicy.DefaultUpdateInformationProtectionDataLossPreventionPolicyOperationOptions())
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 CreateInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (CreateInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (CreateInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (CreateInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type CreateInformationProtectionDataLossPreventionPolicyOperationResponse

type CreateInformationProtectionDataLossPreventionPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DataLossPreventionPolicy
}

type DataLossPreventionPolicyOperationPredicate

type DataLossPreventionPolicyOperationPredicate struct {
}

func (DataLossPreventionPolicyOperationPredicate) Matches

type DeleteInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (DeleteInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (DeleteInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (DeleteInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type DeleteInformationProtectionDataLossPreventionPolicyOperationResponse

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

type EvaluateInformationProtectionDataLossPreventionPoliciesOperationOptions

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

func (EvaluateInformationProtectionDataLossPreventionPoliciesOperationOptions) ToHeaders

func (EvaluateInformationProtectionDataLossPreventionPoliciesOperationOptions) ToOData

func (EvaluateInformationProtectionDataLossPreventionPoliciesOperationOptions) ToQuery

type EvaluateInformationProtectionDataLossPreventionPoliciesOperationResponse

type EvaluateInformationProtectionDataLossPreventionPoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DlpEvaluatePoliciesJobResponse
}

type EvaluateInformationProtectionDataLossPreventionPoliciesRequest

type EvaluateInformationProtectionDataLossPreventionPoliciesRequest struct {
	EvaluationInput  *beta.DlpEvaluationInput `json:"evaluationInput,omitempty"`
	NotificationInfo *beta.DlpNotification    `json:"notificationInfo,omitempty"`
	Target           nullable.Type[string]    `json:"target,omitempty"`
}

type GetInformationProtectionDataLossPreventionPoliciesCountOperationOptions

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

func (GetInformationProtectionDataLossPreventionPoliciesCountOperationOptions) ToHeaders

func (GetInformationProtectionDataLossPreventionPoliciesCountOperationOptions) ToOData

func (GetInformationProtectionDataLossPreventionPoliciesCountOperationOptions) ToQuery

type GetInformationProtectionDataLossPreventionPoliciesCountOperationResponse

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

type GetInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (GetInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (GetInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (GetInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type GetInformationProtectionDataLossPreventionPolicyOperationResponse

type GetInformationProtectionDataLossPreventionPolicyOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *beta.DataLossPreventionPolicy
}

type InformationProtectionDataLossPreventionPolicyClient

type InformationProtectionDataLossPreventionPolicyClient struct {
	Client *msgraph.Client
}

func NewInformationProtectionDataLossPreventionPolicyClientWithBaseURI

func NewInformationProtectionDataLossPreventionPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*InformationProtectionDataLossPreventionPolicyClient, error)

func (InformationProtectionDataLossPreventionPolicyClient) CreateInformationProtectionDataLossPreventionPolicy

CreateInformationProtectionDataLossPreventionPolicy - Create new navigation property to dataLossPreventionPolicies for users

func (InformationProtectionDataLossPreventionPolicyClient) DeleteInformationProtectionDataLossPreventionPolicy

DeleteInformationProtectionDataLossPreventionPolicy - Delete navigation property dataLossPreventionPolicies for users

func (InformationProtectionDataLossPreventionPolicyClient) EvaluateInformationProtectionDataLossPreventionPolicies

EvaluateInformationProtectionDataLossPreventionPolicies - Invoke action evaluate

func (InformationProtectionDataLossPreventionPolicyClient) GetInformationProtectionDataLossPreventionPoliciesCount

GetInformationProtectionDataLossPreventionPoliciesCount - Get the number of the resource

func (InformationProtectionDataLossPreventionPolicyClient) GetInformationProtectionDataLossPreventionPolicy

GetInformationProtectionDataLossPreventionPolicy - Get dataLossPreventionPolicies from users

func (InformationProtectionDataLossPreventionPolicyClient) ListInformationProtectionDataLossPreventionPolicies

ListInformationProtectionDataLossPreventionPolicies - Get dataLossPreventionPolicies from users

func (InformationProtectionDataLossPreventionPolicyClient) ListInformationProtectionDataLossPreventionPoliciesComplete

ListInformationProtectionDataLossPreventionPoliciesComplete retrieves all the results into a single object

func (InformationProtectionDataLossPreventionPolicyClient) ListInformationProtectionDataLossPreventionPoliciesCompleteMatchingPredicate

ListInformationProtectionDataLossPreventionPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (InformationProtectionDataLossPreventionPolicyClient) UpdateInformationProtectionDataLossPreventionPolicy

UpdateInformationProtectionDataLossPreventionPolicy - Update the navigation property dataLossPreventionPolicies in users

type ListInformationProtectionDataLossPreventionPoliciesCompleteResult

type ListInformationProtectionDataLossPreventionPoliciesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []beta.DataLossPreventionPolicy
}

type ListInformationProtectionDataLossPreventionPoliciesCustomPager

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

type ListInformationProtectionDataLossPreventionPoliciesOperationOptions

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

func (ListInformationProtectionDataLossPreventionPoliciesOperationOptions) ToOData

func (ListInformationProtectionDataLossPreventionPoliciesOperationOptions) ToQuery

type ListInformationProtectionDataLossPreventionPoliciesOperationResponse

type ListInformationProtectionDataLossPreventionPoliciesOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]beta.DataLossPreventionPolicy
}

type UpdateInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (UpdateInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (UpdateInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (UpdateInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type UpdateInformationProtectionDataLossPreventionPolicyOperationResponse

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