siteinformationprotectiondatalosspreventionpolicy

package
v0.20241126.1723 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: 9 Imported by: 0

README

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

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

Client Initialization

client := siteinformationprotectiondatalosspreventionpolicy.NewSiteInformationProtectionDataLossPreventionPolicyClientWithBaseURI("https://graph.microsoft.com")
client.Client.Authorizer = authorizer

Example Usage: SiteInformationProtectionDataLossPreventionPolicyClient.CreateSiteInformationProtectionDataLossPreventionPolicy

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

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


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

Example Usage: SiteInformationProtectionDataLossPreventionPolicyClient.DeleteSiteInformationProtectionDataLossPreventionPolicy

ctx := context.TODO()
id := siteinformationprotectiondatalosspreventionpolicy.NewGroupIdSiteIdInformationProtectionDataLossPreventionPolicyID("groupId", "siteId", "dataLossPreventionPolicyId")

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

Example Usage: SiteInformationProtectionDataLossPreventionPolicyClient.EvaluateSiteInformationProtectionDataLossPreventionPolicies

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

payload := siteinformationprotectiondatalosspreventionpolicy.EvaluateSiteInformationProtectionDataLossPreventionPoliciesRequest{
	// ...
}


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

Example Usage: SiteInformationProtectionDataLossPreventionPolicyClient.GetSiteInformationProtectionDataLossPreventionPoliciesCount

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

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

Example Usage: SiteInformationProtectionDataLossPreventionPolicyClient.GetSiteInformationProtectionDataLossPreventionPolicy

ctx := context.TODO()
id := siteinformationprotectiondatalosspreventionpolicy.NewGroupIdSiteIdInformationProtectionDataLossPreventionPolicyID("groupId", "siteId", "dataLossPreventionPolicyId")

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

Example Usage: SiteInformationProtectionDataLossPreventionPolicyClient.ListSiteInformationProtectionDataLossPreventionPolicies

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

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

Example Usage: SiteInformationProtectionDataLossPreventionPolicyClient.UpdateSiteInformationProtectionDataLossPreventionPolicy

ctx := context.TODO()
id := siteinformationprotectiondatalosspreventionpolicy.NewGroupIdSiteIdInformationProtectionDataLossPreventionPolicyID("groupId", "siteId", "dataLossPreventionPolicyId")

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


read, err := client.UpdateSiteInformationProtectionDataLossPreventionPolicy(ctx, id, payload, siteinformationprotectiondatalosspreventionpolicy.DefaultUpdateSiteInformationProtectionDataLossPreventionPolicyOperationOptions())
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 CreateSiteInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (CreateSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (CreateSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (CreateSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type CreateSiteInformationProtectionDataLossPreventionPolicyOperationResponse

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

type DataLossPreventionPolicyOperationPredicate

type DataLossPreventionPolicyOperationPredicate struct {
}

func (DataLossPreventionPolicyOperationPredicate) Matches

type DeleteSiteInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (DeleteSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (DeleteSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (DeleteSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type DeleteSiteInformationProtectionDataLossPreventionPolicyOperationResponse

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

type EvaluateSiteInformationProtectionDataLossPreventionPoliciesOperationOptions

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

func (EvaluateSiteInformationProtectionDataLossPreventionPoliciesOperationOptions) ToHeaders

func (EvaluateSiteInformationProtectionDataLossPreventionPoliciesOperationOptions) ToOData

func (EvaluateSiteInformationProtectionDataLossPreventionPoliciesOperationOptions) ToQuery

type EvaluateSiteInformationProtectionDataLossPreventionPoliciesOperationResponse

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

type EvaluateSiteInformationProtectionDataLossPreventionPoliciesRequest

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

type GetSiteInformationProtectionDataLossPreventionPoliciesCountOperationOptions

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

func (GetSiteInformationProtectionDataLossPreventionPoliciesCountOperationOptions) ToHeaders

func (GetSiteInformationProtectionDataLossPreventionPoliciesCountOperationOptions) ToOData

func (GetSiteInformationProtectionDataLossPreventionPoliciesCountOperationOptions) ToQuery

type GetSiteInformationProtectionDataLossPreventionPoliciesCountOperationResponse

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

type GetSiteInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (GetSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (GetSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (GetSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type GetSiteInformationProtectionDataLossPreventionPolicyOperationResponse

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

type ListSiteInformationProtectionDataLossPreventionPoliciesCompleteResult

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

type ListSiteInformationProtectionDataLossPreventionPoliciesCustomPager

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

type ListSiteInformationProtectionDataLossPreventionPoliciesOperationOptions

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

func (ListSiteInformationProtectionDataLossPreventionPoliciesOperationOptions) ToOData

func (ListSiteInformationProtectionDataLossPreventionPoliciesOperationOptions) ToQuery

type ListSiteInformationProtectionDataLossPreventionPoliciesOperationResponse

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

type SiteInformationProtectionDataLossPreventionPolicyClient

type SiteInformationProtectionDataLossPreventionPolicyClient struct {
	Client *msgraph.Client
}

func NewSiteInformationProtectionDataLossPreventionPolicyClientWithBaseURI

func NewSiteInformationProtectionDataLossPreventionPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*SiteInformationProtectionDataLossPreventionPolicyClient, error)

func (SiteInformationProtectionDataLossPreventionPolicyClient) CreateSiteInformationProtectionDataLossPreventionPolicy

CreateSiteInformationProtectionDataLossPreventionPolicy - Create new navigation property to dataLossPreventionPolicies for groups

func (SiteInformationProtectionDataLossPreventionPolicyClient) DeleteSiteInformationProtectionDataLossPreventionPolicy

DeleteSiteInformationProtectionDataLossPreventionPolicy - Delete navigation property dataLossPreventionPolicies for groups

func (SiteInformationProtectionDataLossPreventionPolicyClient) EvaluateSiteInformationProtectionDataLossPreventionPolicies

EvaluateSiteInformationProtectionDataLossPreventionPolicies - Invoke action evaluate

func (SiteInformationProtectionDataLossPreventionPolicyClient) GetSiteInformationProtectionDataLossPreventionPoliciesCount

GetSiteInformationProtectionDataLossPreventionPoliciesCount - Get the number of the resource

func (SiteInformationProtectionDataLossPreventionPolicyClient) GetSiteInformationProtectionDataLossPreventionPolicy

GetSiteInformationProtectionDataLossPreventionPolicy - Get dataLossPreventionPolicies from groups

func (SiteInformationProtectionDataLossPreventionPolicyClient) ListSiteInformationProtectionDataLossPreventionPolicies

ListSiteInformationProtectionDataLossPreventionPolicies - Get dataLossPreventionPolicies from groups

func (SiteInformationProtectionDataLossPreventionPolicyClient) ListSiteInformationProtectionDataLossPreventionPoliciesComplete

ListSiteInformationProtectionDataLossPreventionPoliciesComplete retrieves all the results into a single object

func (SiteInformationProtectionDataLossPreventionPolicyClient) ListSiteInformationProtectionDataLossPreventionPoliciesCompleteMatchingPredicate

ListSiteInformationProtectionDataLossPreventionPoliciesCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SiteInformationProtectionDataLossPreventionPolicyClient) UpdateSiteInformationProtectionDataLossPreventionPolicy

UpdateSiteInformationProtectionDataLossPreventionPolicy - Update the navigation property dataLossPreventionPolicies in groups

type UpdateSiteInformationProtectionDataLossPreventionPolicyOperationOptions

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

func (UpdateSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToHeaders

func (UpdateSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToOData

func (UpdateSiteInformationProtectionDataLossPreventionPolicyOperationOptions) ToQuery

type UpdateSiteInformationProtectionDataLossPreventionPolicyOperationResponse

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