informationprotectionpolicies

package
v0.20231103.1085514 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/security/2017-08-01-preview/informationprotectionpolicies Documentation

The informationprotectionpolicies SDK allows for interaction with the Azure Resource Manager Service security (API Version 2017-08-01-preview).

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/resource-manager/security/2017-08-01-preview/informationprotectionpolicies"

Client Initialization

client := informationprotectionpolicies.NewInformationProtectionPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: InformationProtectionPoliciesClient.CreateOrUpdate

ctx := context.TODO()
id := informationprotectionpolicies.NewScopedInformationProtectionPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "custom")

payload := informationprotectionpolicies.InformationProtectionPolicy{
	// ...
}


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

Example Usage: InformationProtectionPoliciesClient.Get

ctx := context.TODO()
id := informationprotectionpolicies.NewScopedInformationProtectionPolicyID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group", "custom")

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

Example Usage: InformationProtectionPoliciesClient.List

ctx := context.TODO()
id := informationprotectionpolicies.NewScopeID("/subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/some-resource-group")

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForInformationProtectionPolicyName

func PossibleValuesForInformationProtectionPolicyName() []string

func PossibleValuesForRank

func PossibleValuesForRank() []string

func ValidateScopedInformationProtectionPolicyID

func ValidateScopedInformationProtectionPolicyID(input interface{}, key string) (warnings []string, errors []error)

ValidateScopedInformationProtectionPolicyID checks that 'input' can be parsed as a Scoped Information Protection Policy ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *InformationProtectionPolicy
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *InformationProtectionPolicy
}

type InformationProtectionKeyword

type InformationProtectionKeyword struct {
	CanBeNumeric *bool   `json:"canBeNumeric,omitempty"`
	Custom       *bool   `json:"custom,omitempty"`
	Excluded     *bool   `json:"excluded,omitempty"`
	Pattern      *string `json:"pattern,omitempty"`
}

type InformationProtectionPoliciesClient

type InformationProtectionPoliciesClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewInformationProtectionPoliciesClientWithBaseURI

func NewInformationProtectionPoliciesClientWithBaseURI(endpoint string) InformationProtectionPoliciesClient

func (InformationProtectionPoliciesClient) CreateOrUpdate

CreateOrUpdate ...

func (InformationProtectionPoliciesClient) Get

Get ...

func (InformationProtectionPoliciesClient) List

List ...

func (InformationProtectionPoliciesClient) ListComplete

ListComplete retrieves all of the results into a single object

func (InformationProtectionPoliciesClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

type InformationProtectionPolicy

type InformationProtectionPolicy struct {
	Id         *string                                `json:"id,omitempty"`
	Name       *string                                `json:"name,omitempty"`
	Properties *InformationProtectionPolicyProperties `json:"properties,omitempty"`
	Type       *string                                `json:"type,omitempty"`
}

type InformationProtectionPolicyName

type InformationProtectionPolicyName string
const (
	InformationProtectionPolicyNameCustom    InformationProtectionPolicyName = "custom"
	InformationProtectionPolicyNameEffective InformationProtectionPolicyName = "effective"
)

type InformationProtectionPolicyOperationPredicate

type InformationProtectionPolicyOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (InformationProtectionPolicyOperationPredicate) Matches

type InformationProtectionPolicyProperties

type InformationProtectionPolicyProperties struct {
	InformationTypes *map[string]InformationType  `json:"informationTypes,omitempty"`
	Labels           *map[string]SensitivityLabel `json:"labels,omitempty"`
	LastModifiedUtc  *string                      `json:"lastModifiedUtc,omitempty"`
	Version          *string                      `json:"version,omitempty"`
}

func (*InformationProtectionPolicyProperties) GetLastModifiedUtcAsTime

func (o *InformationProtectionPolicyProperties) GetLastModifiedUtcAsTime() (*time.Time, error)

func (*InformationProtectionPolicyProperties) SetLastModifiedUtcAsTime

func (o *InformationProtectionPolicyProperties) SetLastModifiedUtcAsTime(input time.Time)

type InformationType

type InformationType struct {
	Custom             *bool                           `json:"custom,omitempty"`
	Description        *string                         `json:"description,omitempty"`
	DisplayName        *string                         `json:"displayName,omitempty"`
	Enabled            *bool                           `json:"enabled,omitempty"`
	Keywords           *[]InformationProtectionKeyword `json:"keywords,omitempty"`
	Order              *int64                          `json:"order,omitempty"`
	RecommendedLabelId *string                         `json:"recommendedLabelId,omitempty"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []InformationProtectionPolicy
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]InformationProtectionPolicy
	// contains filtered or unexported fields
}

func (ListOperationResponse) HasMore

func (r ListOperationResponse) HasMore() bool

func (ListOperationResponse) LoadMore

func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)

type Rank

type Rank string
const (
	RankCritical Rank = "Critical"
	RankHigh     Rank = "High"
	RankLow      Rank = "Low"
	RankMedium   Rank = "Medium"
	RankNone     Rank = "None"
)

type ScopedInformationProtectionPolicyId

type ScopedInformationProtectionPolicyId struct {
	Scope                           string
	InformationProtectionPolicyName InformationProtectionPolicyName
}

ScopedInformationProtectionPolicyId is a struct representing the Resource ID for a Scoped Information Protection Policy

func NewScopedInformationProtectionPolicyID

func NewScopedInformationProtectionPolicyID(scope string, informationProtectionPolicyName InformationProtectionPolicyName) ScopedInformationProtectionPolicyId

NewScopedInformationProtectionPolicyID returns a new ScopedInformationProtectionPolicyId struct

func ParseScopedInformationProtectionPolicyID

func ParseScopedInformationProtectionPolicyID(input string) (*ScopedInformationProtectionPolicyId, error)

ParseScopedInformationProtectionPolicyID parses 'input' into a ScopedInformationProtectionPolicyId

func ParseScopedInformationProtectionPolicyIDInsensitively

func ParseScopedInformationProtectionPolicyIDInsensitively(input string) (*ScopedInformationProtectionPolicyId, error)

ParseScopedInformationProtectionPolicyIDInsensitively parses 'input' case-insensitively into a ScopedInformationProtectionPolicyId note: this method should only be used for API response data and not user input

func (ScopedInformationProtectionPolicyId) ID

ID returns the formatted Scoped Information Protection Policy ID

func (ScopedInformationProtectionPolicyId) Segments

Segments returns a slice of Resource ID Segments which comprise this Scoped Information Protection Policy ID

func (ScopedInformationProtectionPolicyId) String

String returns a human-readable description of this Scoped Information Protection Policy ID

type SensitivityLabel

type SensitivityLabel struct {
	Description *string `json:"description,omitempty"`
	DisplayName *string `json:"displayName,omitempty"`
	Enabled     *bool   `json:"enabled,omitempty"`
	Order       *int64  `json:"order,omitempty"`
	Rank        *Rank   `json:"rank,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL