sqlpoolssensitivitylabels

package
v0.20240320.1144505 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolssensitivitylabels Documentation

The sqlpoolssensitivitylabels SDK allows for interaction with the Azure Resource Manager Service synapse (API Version 2021-06-01).

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/synapse/2021-06-01/sqlpoolssensitivitylabels"

Client Initialization

client := sqlpoolssensitivitylabels.NewSqlPoolsSensitivityLabelsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: SqlPoolsSensitivityLabelsClient.SqlPoolRecommendedSensitivityLabelsUpdate

ctx := context.TODO()
id := sqlpoolssensitivitylabels.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

payload := sqlpoolssensitivitylabels.RecommendedSensitivityLabelUpdateList{
	// ...
}


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

Example Usage: SqlPoolsSensitivityLabelsClient.SqlPoolSensitivityLabelsCreateOrUpdate

ctx := context.TODO()
id := sqlpoolssensitivitylabels.NewColumnID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue", "schemaValue", "tableValue", "columnValue")

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


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

Example Usage: SqlPoolsSensitivityLabelsClient.SqlPoolSensitivityLabelsDelete

ctx := context.TODO()
id := sqlpoolssensitivitylabels.NewColumnID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue", "schemaValue", "tableValue", "columnValue")

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

Example Usage: SqlPoolsSensitivityLabelsClient.SqlPoolSensitivityLabelsGet

ctx := context.TODO()
id := sqlpoolssensitivitylabels.NewSensitivityLabelSourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue", "schemaValue", "tableValue", "columnValue", "current")

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

Example Usage: SqlPoolsSensitivityLabelsClient.SqlPoolSensitivityLabelsListCurrent

ctx := context.TODO()
id := sqlpoolssensitivitylabels.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

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

Example Usage: SqlPoolsSensitivityLabelsClient.SqlPoolSensitivityLabelsListRecommended

ctx := context.TODO()
id := sqlpoolssensitivitylabels.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

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

Example Usage: SqlPoolsSensitivityLabelsClient.SqlPoolSensitivityLabelsUpdate

ctx := context.TODO()
id := sqlpoolssensitivitylabels.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")

payload := sqlpoolssensitivitylabels.SensitivityLabelUpdateList{
	// ...
}


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

func PossibleValuesForRecommendedSensitivityLabelUpdateKind

func PossibleValuesForRecommendedSensitivityLabelUpdateKind() []string

func PossibleValuesForSensitivityLabelRank

func PossibleValuesForSensitivityLabelRank() []string

func PossibleValuesForSensitivityLabelSource

func PossibleValuesForSensitivityLabelSource() []string

func PossibleValuesForSensitivityLabelUpdateKind

func PossibleValuesForSensitivityLabelUpdateKind() []string

func ValidateColumnID

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

ValidateColumnID checks that 'input' can be parsed as a Column ID

func ValidateSensitivityLabelSourceID

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

ValidateSensitivityLabelSourceID checks that 'input' can be parsed as a Sensitivity Label Source ID

func ValidateSqlPoolID

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

ValidateSqlPoolID checks that 'input' can be parsed as a Sql Pool ID

Types

type ColumnId

type ColumnId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	SqlPoolName       string
	SchemaName        string
	TableName         string
	ColumnName        string
}

ColumnId is a struct representing the Resource ID for a Column

func NewColumnID

func NewColumnID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string) ColumnId

NewColumnID returns a new ColumnId struct

func ParseColumnID

func ParseColumnID(input string) (*ColumnId, error)

ParseColumnID parses 'input' into a ColumnId

func ParseColumnIDInsensitively

func ParseColumnIDInsensitively(input string) (*ColumnId, error)

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

func (*ColumnId) FromParseResult

func (id *ColumnId) FromParseResult(input resourceids.ParseResult) error

func (ColumnId) ID

func (id ColumnId) ID() string

ID returns the formatted Column ID

func (ColumnId) Segments

func (id ColumnId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Column ID

func (ColumnId) String

func (id ColumnId) String() string

String returns a human-readable description of this Column ID

type RecommendedSensitivityLabelUpdate

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

type RecommendedSensitivityLabelUpdateKind

type RecommendedSensitivityLabelUpdateKind string
const (
	RecommendedSensitivityLabelUpdateKindDisable RecommendedSensitivityLabelUpdateKind = "disable"
	RecommendedSensitivityLabelUpdateKindEnable  RecommendedSensitivityLabelUpdateKind = "enable"
)

func (*RecommendedSensitivityLabelUpdateKind) UnmarshalJSON

func (s *RecommendedSensitivityLabelUpdateKind) UnmarshalJSON(bytes []byte) error

type RecommendedSensitivityLabelUpdateList

type RecommendedSensitivityLabelUpdateList struct {
	Operations *[]RecommendedSensitivityLabelUpdate `json:"operations,omitempty"`
}

type RecommendedSensitivityLabelUpdateProperties

type RecommendedSensitivityLabelUpdateProperties struct {
	Column string                                `json:"column"`
	Op     RecommendedSensitivityLabelUpdateKind `json:"op"`
	Schema string                                `json:"schema"`
	Table  string                                `json:"table"`
}

type SensitivityLabel

type SensitivityLabel struct {
	Id         *string                     `json:"id,omitempty"`
	ManagedBy  *string                     `json:"managedBy,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *SensitivityLabelProperties `json:"properties,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type SensitivityLabelOperationPredicate

type SensitivityLabelOperationPredicate struct {
	Id        *string
	ManagedBy *string
	Name      *string
	Type      *string
}

func (SensitivityLabelOperationPredicate) Matches

type SensitivityLabelProperties

type SensitivityLabelProperties struct {
	ColumnName        *string               `json:"columnName,omitempty"`
	InformationType   *string               `json:"informationType,omitempty"`
	InformationTypeId *string               `json:"informationTypeId,omitempty"`
	IsDisabled        *bool                 `json:"isDisabled,omitempty"`
	LabelId           *string               `json:"labelId,omitempty"`
	LabelName         *string               `json:"labelName,omitempty"`
	Rank              *SensitivityLabelRank `json:"rank,omitempty"`
	SchemaName        *string               `json:"schemaName,omitempty"`
	TableName         *string               `json:"tableName,omitempty"`
}

type SensitivityLabelRank

type SensitivityLabelRank string
const (
	SensitivityLabelRankCritical SensitivityLabelRank = "Critical"
	SensitivityLabelRankHigh     SensitivityLabelRank = "High"
	SensitivityLabelRankLow      SensitivityLabelRank = "Low"
	SensitivityLabelRankMedium   SensitivityLabelRank = "Medium"
	SensitivityLabelRankNone     SensitivityLabelRank = "None"
)

func (*SensitivityLabelRank) UnmarshalJSON

func (s *SensitivityLabelRank) UnmarshalJSON(bytes []byte) error

type SensitivityLabelSource

type SensitivityLabelSource string
const (
	SensitivityLabelSourceCurrent     SensitivityLabelSource = "current"
	SensitivityLabelSourceRecommended SensitivityLabelSource = "recommended"
)

func (*SensitivityLabelSource) UnmarshalJSON

func (s *SensitivityLabelSource) UnmarshalJSON(bytes []byte) error

type SensitivityLabelSourceId

type SensitivityLabelSourceId struct {
	SubscriptionId         string
	ResourceGroupName      string
	WorkspaceName          string
	SqlPoolName            string
	SchemaName             string
	TableName              string
	ColumnName             string
	SensitivityLabelSource SensitivityLabelSource
}

SensitivityLabelSourceId is a struct representing the Resource ID for a Sensitivity Label Source

func NewSensitivityLabelSourceID

func NewSensitivityLabelSourceID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string, schemaName string, tableName string, columnName string, sensitivityLabelSource SensitivityLabelSource) SensitivityLabelSourceId

NewSensitivityLabelSourceID returns a new SensitivityLabelSourceId struct

func ParseSensitivityLabelSourceID

func ParseSensitivityLabelSourceID(input string) (*SensitivityLabelSourceId, error)

ParseSensitivityLabelSourceID parses 'input' into a SensitivityLabelSourceId

func ParseSensitivityLabelSourceIDInsensitively

func ParseSensitivityLabelSourceIDInsensitively(input string) (*SensitivityLabelSourceId, error)

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

func (*SensitivityLabelSourceId) FromParseResult

func (id *SensitivityLabelSourceId) FromParseResult(input resourceids.ParseResult) error

func (SensitivityLabelSourceId) ID

ID returns the formatted Sensitivity Label Source ID

func (SensitivityLabelSourceId) Segments

Segments returns a slice of Resource ID Segments which comprise this Sensitivity Label Source ID

func (SensitivityLabelSourceId) String

func (id SensitivityLabelSourceId) String() string

String returns a human-readable description of this Sensitivity Label Source ID

type SensitivityLabelUpdate

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

type SensitivityLabelUpdateKind

type SensitivityLabelUpdateKind string
const (
	SensitivityLabelUpdateKindRemove SensitivityLabelUpdateKind = "remove"
	SensitivityLabelUpdateKindSet    SensitivityLabelUpdateKind = "set"
)

func (*SensitivityLabelUpdateKind) UnmarshalJSON

func (s *SensitivityLabelUpdateKind) UnmarshalJSON(bytes []byte) error

type SensitivityLabelUpdateList

type SensitivityLabelUpdateList struct {
	Operations *[]SensitivityLabelUpdate `json:"operations,omitempty"`
}

type SensitivityLabelUpdateProperties

type SensitivityLabelUpdateProperties struct {
	Column           string                     `json:"column"`
	Op               SensitivityLabelUpdateKind `json:"op"`
	Schema           string                     `json:"schema"`
	SensitivityLabel *SensitivityLabel          `json:"sensitivityLabel,omitempty"`
	Table            string                     `json:"table"`
}

type SqlPoolId

type SqlPoolId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	SqlPoolName       string
}

SqlPoolId is a struct representing the Resource ID for a Sql Pool

func NewSqlPoolID

func NewSqlPoolID(subscriptionId string, resourceGroupName string, workspaceName string, sqlPoolName string) SqlPoolId

NewSqlPoolID returns a new SqlPoolId struct

func ParseSqlPoolID

func ParseSqlPoolID(input string) (*SqlPoolId, error)

ParseSqlPoolID parses 'input' into a SqlPoolId

func ParseSqlPoolIDInsensitively

func ParseSqlPoolIDInsensitively(input string) (*SqlPoolId, error)

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

func (*SqlPoolId) FromParseResult

func (id *SqlPoolId) FromParseResult(input resourceids.ParseResult) error

func (SqlPoolId) ID

func (id SqlPoolId) ID() string

ID returns the formatted Sql Pool ID

func (SqlPoolId) Segments

func (id SqlPoolId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Sql Pool ID

func (SqlPoolId) String

func (id SqlPoolId) String() string

String returns a human-readable description of this Sql Pool ID

type SqlPoolRecommendedSensitivityLabelsUpdateOperationResponse

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

type SqlPoolSensitivityLabelsCreateOrUpdateOperationResponse

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

type SqlPoolSensitivityLabelsDeleteOperationResponse

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

type SqlPoolSensitivityLabelsGetOperationResponse

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

type SqlPoolSensitivityLabelsListCurrentCompleteResult

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

type SqlPoolSensitivityLabelsListCurrentOperationOptions

type SqlPoolSensitivityLabelsListCurrentOperationOptions struct {
	Filter *string
}

func DefaultSqlPoolSensitivityLabelsListCurrentOperationOptions

func DefaultSqlPoolSensitivityLabelsListCurrentOperationOptions() SqlPoolSensitivityLabelsListCurrentOperationOptions

func (SqlPoolSensitivityLabelsListCurrentOperationOptions) ToHeaders

func (SqlPoolSensitivityLabelsListCurrentOperationOptions) ToOData

func (SqlPoolSensitivityLabelsListCurrentOperationOptions) ToQuery

type SqlPoolSensitivityLabelsListCurrentOperationResponse

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

type SqlPoolSensitivityLabelsListRecommendedCompleteResult

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

type SqlPoolSensitivityLabelsListRecommendedOperationOptions

type SqlPoolSensitivityLabelsListRecommendedOperationOptions struct {
	Filter                         *string
	IncludeDisabledRecommendations *bool
}

func (SqlPoolSensitivityLabelsListRecommendedOperationOptions) ToHeaders

func (SqlPoolSensitivityLabelsListRecommendedOperationOptions) ToOData

func (SqlPoolSensitivityLabelsListRecommendedOperationOptions) ToQuery

type SqlPoolSensitivityLabelsListRecommendedOperationResponse

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

type SqlPoolSensitivityLabelsUpdateOperationResponse

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

type SqlPoolsSensitivityLabelsClient

type SqlPoolsSensitivityLabelsClient struct {
	Client *resourcemanager.Client
}

func NewSqlPoolsSensitivityLabelsClientWithBaseURI

func NewSqlPoolsSensitivityLabelsClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsSensitivityLabelsClient, error)

func (SqlPoolsSensitivityLabelsClient) SqlPoolRecommendedSensitivityLabelsUpdate

SqlPoolRecommendedSensitivityLabelsUpdate ...

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsCreateOrUpdate

func (c SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsCreateOrUpdate(ctx context.Context, id ColumnId, input SensitivityLabel) (result SqlPoolSensitivityLabelsCreateOrUpdateOperationResponse, err error)

SqlPoolSensitivityLabelsCreateOrUpdate ...

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsDelete

func (c SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsDelete(ctx context.Context, id ColumnId) (result SqlPoolSensitivityLabelsDeleteOperationResponse, err error)

SqlPoolSensitivityLabelsDelete ...

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsGet

SqlPoolSensitivityLabelsGet ...

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListCurrent

SqlPoolSensitivityLabelsListCurrent ...

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListCurrentComplete

SqlPoolSensitivityLabelsListCurrentComplete retrieves all the results into a single object

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListCurrentCompleteMatchingPredicate

SqlPoolSensitivityLabelsListCurrentCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListRecommended

SqlPoolSensitivityLabelsListRecommended ...

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListRecommendedComplete

SqlPoolSensitivityLabelsListRecommendedComplete retrieves all the results into a single object

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsListRecommendedCompleteMatchingPredicate

SqlPoolSensitivityLabelsListRecommendedCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (SqlPoolsSensitivityLabelsClient) SqlPoolSensitivityLabelsUpdate

SqlPoolSensitivityLabelsUpdate ...

Jump to

Keyboard shortcuts

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