README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/synapse/2021-06-01/sqlpoolsdatamaskingpolicies
Documentation
The sqlpoolsdatamaskingpolicies
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/sqlpoolsdatamaskingpolicies"
Client Initialization
client := sqlpoolsdatamaskingpolicies.NewSqlPoolsDataMaskingPoliciesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: SqlPoolsDataMaskingPoliciesClient.DataMaskingPoliciesCreateOrUpdate
ctx := context.TODO()
id := sqlpoolsdatamaskingpolicies.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")
payload := sqlpoolsdatamaskingpolicies.DataMaskingPolicy{
// ...
}
read, err := client.DataMaskingPoliciesCreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: SqlPoolsDataMaskingPoliciesClient.DataMaskingPoliciesGet
ctx := context.TODO()
id := sqlpoolsdatamaskingpolicies.NewSqlPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "sqlPoolValue")
read, err := client.DataMaskingPoliciesGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Documentation ¶
Index ¶
- func PossibleValuesForDataMaskingState() []string
- func ValidateSqlPoolID(input interface{}, key string) (warnings []string, errors []error)
- type DataMaskingPoliciesCreateOrUpdateOperationResponse
- type DataMaskingPoliciesGetOperationResponse
- type DataMaskingPolicy
- type DataMaskingPolicyProperties
- type DataMaskingState
- type SqlPoolId
- type SqlPoolsDataMaskingPoliciesClient
- func (c SqlPoolsDataMaskingPoliciesClient) DataMaskingPoliciesCreateOrUpdate(ctx context.Context, id SqlPoolId, input DataMaskingPolicy) (result DataMaskingPoliciesCreateOrUpdateOperationResponse, err error)
- func (c SqlPoolsDataMaskingPoliciesClient) DataMaskingPoliciesGet(ctx context.Context, id SqlPoolId) (result DataMaskingPoliciesGetOperationResponse, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDataMaskingState ¶
func PossibleValuesForDataMaskingState() []string
func ValidateSqlPoolID ¶
ValidateSqlPoolID checks that 'input' can be parsed as a Sql Pool ID
Types ¶
type DataMaskingPoliciesCreateOrUpdateOperationResponse ¶
type DataMaskingPoliciesCreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DataMaskingPolicy }
type DataMaskingPoliciesGetOperationResponse ¶
type DataMaskingPoliciesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *DataMaskingPolicy }
type DataMaskingPolicy ¶
type DataMaskingPolicy struct { Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location *string `json:"location,omitempty"` ManagedBy *string `json:"managedBy,omitempty"` Name *string `json:"name,omitempty"` Properties *DataMaskingPolicyProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type DataMaskingPolicyProperties ¶
type DataMaskingPolicyProperties struct { ApplicationPrincipals *string `json:"applicationPrincipals,omitempty"` DataMaskingState DataMaskingState `json:"dataMaskingState"` ExemptPrincipals *string `json:"exemptPrincipals,omitempty"` MaskingLevel *string `json:"maskingLevel,omitempty"` }
type DataMaskingState ¶
type DataMaskingState string
const ( DataMaskingStateDisabled DataMaskingState = "Disabled" DataMaskingStateEnabled DataMaskingState = "Enabled" )
func (*DataMaskingState) UnmarshalJSON ¶
func (s *DataMaskingState) UnmarshalJSON(bytes []byte) error
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 ¶
ParseSqlPoolID parses 'input' into a SqlPoolId
func ParseSqlPoolIDInsensitively ¶
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) Segments ¶
func (id SqlPoolId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Sql Pool ID
type SqlPoolsDataMaskingPoliciesClient ¶
type SqlPoolsDataMaskingPoliciesClient struct {
Client *resourcemanager.Client
}
func NewSqlPoolsDataMaskingPoliciesClientWithBaseURI ¶
func NewSqlPoolsDataMaskingPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*SqlPoolsDataMaskingPoliciesClient, error)
func (SqlPoolsDataMaskingPoliciesClient) DataMaskingPoliciesCreateOrUpdate ¶
func (c SqlPoolsDataMaskingPoliciesClient) DataMaskingPoliciesCreateOrUpdate(ctx context.Context, id SqlPoolId, input DataMaskingPolicy) (result DataMaskingPoliciesCreateOrUpdateOperationResponse, err error)
DataMaskingPoliciesCreateOrUpdate ...
func (SqlPoolsDataMaskingPoliciesClient) DataMaskingPoliciesGet ¶
func (c SqlPoolsDataMaskingPoliciesClient) DataMaskingPoliciesGet(ctx context.Context, id SqlPoolId) (result DataMaskingPoliciesGetOperationResponse, err error)
DataMaskingPoliciesGet ...