-
Notifications
You must be signed in to change notification settings - Fork 80
/
update_masking_column_details.go
68 lines (56 loc) · 3.24 KB
/
update_masking_column_details.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
// Copyright (c) 2016, 2018, 2024, Oracle and/or its affiliates. All rights reserved.
// This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
// Code generated. DO NOT EDIT.
// Data Safe API
//
// APIs for using Oracle Data Safe.
//
package datasafe
import (
"fmt"
"github.com/oracle/oci-go-sdk/v65/common"
"strings"
)
// UpdateMaskingColumnDetails Details to update a masking column.
type UpdateMaskingColumnDetails struct {
// The type of the object that contains the database column.
ObjectType ObjectTypeEnum `mandatory:"false" json:"objectType,omitempty"`
// The group of the masking column. It's a masking group identifier and can be any
// string of acceptable length. All the columns in a group are masked together to
// ensure that the masked data across these columns continue to retain the same
// logical relationship. For more details, check
// <a href=https://docs.oracle.com/en/cloud/paas/data-safe/udscs/group-masking1.html#GUID-755056B9-9540-48C0-9491-262A44A85037>Group Masking in the Data Safe documentation.</a>
MaskingColumnGroup *string `mandatory:"false" json:"maskingColumnGroup"`
// The OCID of the sensitive type to be associated with the masking column. Note that there will be no change in
// assigned masking format when sensitive type is changed.
SensitiveTypeId *string `mandatory:"false" json:"sensitiveTypeId"`
// Indicates whether data masking is enabled for the masking column. Set it to false
// if you don't want to mask the column.
IsMaskingEnabled *bool `mandatory:"false" json:"isMaskingEnabled"`
// The masking formats to be assigned to the masking column. You can specify a
// condition as part of each masking format. It enables you to do
// <a href="https://docs.oracle.com/en/cloud/paas/data-safe/udscs/conditional-masking.html">conditional masking</a>
// so that you can mask the column data values differently using different
// masking formats and the associated conditions. A masking format can have
// one or more format entries. The combined output of all the format entries is
// used for masking. It provides the flexibility to define a masking format that
// can generate different parts of a data value separately and then combine them
// to get the final data value for masking.
MaskingFormats []MaskingFormat `mandatory:"false" json:"maskingFormats"`
}
func (m UpdateMaskingColumnDetails) String() string {
return common.PointerString(m)
}
// ValidateEnumValue returns an error when providing an unsupported enum value
// This function is being called during constructing API request process
// Not recommended for calling this function directly
func (m UpdateMaskingColumnDetails) ValidateEnumValue() (bool, error) {
errMessage := []string{}
if _, ok := GetMappingObjectTypeEnum(string(m.ObjectType)); !ok && m.ObjectType != "" {
errMessage = append(errMessage, fmt.Sprintf("unsupported enum value for ObjectType: %s. Supported values are: %s.", m.ObjectType, strings.Join(GetObjectTypeEnumStringValues(), ",")))
}
if len(errMessage) > 0 {
return true, fmt.Errorf(strings.Join(errMessage, "\n"))
}
return false, nil
}