Class: Azure::ARM::SQL::Models::DataMaskingPolicy

Inherits:
ProxyResource
  • Object
show all
Includes:
MsRest::JSONable, MsRestAzure
Defined in:
lib/generated/azure_mgmt_sql/models/data_masking_policy.rb

Overview

Represents a database data masking policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#application_principalsString

legacy parameter and is no longer used.

Returns:

  • (String)

    The list of the application principals. This is a



28
29
30
# File 'lib/generated/azure_mgmt_sql/models/data_masking_policy.rb', line 28

def application_principals
  @application_principals
end

#data_masking_stateDataMaskingState

Possible values include: ‘Disabled’, ‘Enabled’

Returns:



18
19
20
# File 'lib/generated/azure_mgmt_sql/models/data_masking_policy.rb', line 18

def data_masking_state
  @data_masking_state
end

#exempt_principalsString

semicolon-separated list of database users for which the data masking policy does not apply. The specified users receive data results without masking for all of the database queries.

Returns:

  • (String)

    The list of the exempt principals. Specifies the



24
25
26
# File 'lib/generated/azure_mgmt_sql/models/data_masking_policy.rb', line 24

def exempt_principals
  @exempt_principals
end

#kindString

Azure portal.

Returns:

  • (String)

    The kind of data masking policy. Metadata, used for



39
40
41
# File 'lib/generated/azure_mgmt_sql/models/data_masking_policy.rb', line 39

def kind
  @kind
end

#locationString

Returns The location of the data masking policy.

Returns:

  • (String)

    The location of the data masking policy.



35
36
37
# File 'lib/generated/azure_mgmt_sql/models/data_masking_policy.rb', line 35

def location
  @location
end

#masking_levelString

no longer used.

Returns:

  • (String)

    The masking level. This is a legacy parameter and is



32
33
34
# File 'lib/generated/azure_mgmt_sql/models/data_masking_policy.rb', line 32

def masking_level
  @masking_level
end

Class Method Details

.mapperObject

Mapper for DataMaskingPolicy class as Ruby Hash. This will be used for serialization/deserialization.



46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# File 'lib/generated/azure_mgmt_sql/models/data_masking_policy.rb', line 46

def self.mapper()
  {
    required: false,
    serialized_name: 'DataMaskingPolicy',
    type: {
      name: 'Composite',
      class_name: 'DataMaskingPolicy',
      model_properties: {
        id: {
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        data_masking_state: {
          required: true,
          serialized_name: 'properties.dataMaskingState',
          type: {
            name: 'Enum',
            module: 'DataMaskingState'
          }
        },
        exempt_principals: {
          required: false,
          serialized_name: 'properties.exemptPrincipals',
          type: {
            name: 'String'
          }
        },
        application_principals: {
          required: false,
          read_only: true,
          serialized_name: 'properties.applicationPrincipals',
          type: {
            name: 'String'
          }
        },
        masking_level: {
          required: false,
          read_only: true,
          serialized_name: 'properties.maskingLevel',
          type: {
            name: 'String'
          }
        },
        location: {
          required: false,
          read_only: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        kind: {
          required: false,
          read_only: true,
          serialized_name: 'kind',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end