Class: Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb

Overview

The data masking policy that is used to specify data masking rule.

Defined Under Namespace

Modules: PredefinedExpression

Instance Attribute Summary collapse

Instance Attribute Details

#predefined_expression::Google::Cloud::Bigquery::DataPolicies::V1beta1::DataMaskingPolicy::PredefinedExpression

Returns A predefined masking expression.



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# File 'proto_docs/google/cloud/bigquery/datapolicies/v1beta1/datapolicy.rb', line 153

class DataMaskingPolicy
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The available masking rules. Learn more here:
  # https://cloud.google.com/bigquery/docs/column-data-masking-intro#masking_options.
  module PredefinedExpression
    # Default, unspecified predefined expression. No masking will take place
    # since no expression is specified.
    PREDEFINED_EXPRESSION_UNSPECIFIED = 0

    # Masking expression to replace data with SHA-256 hash.
    SHA256 = 3

    # Masking expression to replace data with NULLs.
    ALWAYS_NULL = 5

    # Masking expression to replace data with their default masking values.
    # The default masking values for each type listed as below:
    #
    # * STRING: ""
    # * BYTES: b''
    # * INTEGER: 0
    # * FLOAT: 0.0
    # * NUMERIC: 0
    # * BOOLEAN: FALSE
    # * TIMESTAMP: 0001-01-01 00:00:00 UTC
    # * DATE: 0001-01-01
    # * TIME: 00:00:00
    # * DATETIME: 0001-01-01T00:00:00
    # * GEOGRAPHY: POINT(0 0)
    # * BIGNUMERIC: 0
    # * ARRAY: []
    # * STRUCT: NOT_APPLICABLE
    # * JSON: NULL
    DEFAULT_MASKING_VALUE = 7
  end
end