Class: Google::Apis::BigquerydatapolicyV1::DataMaskingPolicy

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/bigquerydatapolicy_v1/classes.rb,
lib/google/apis/bigquerydatapolicy_v1/representations.rb,
lib/google/apis/bigquerydatapolicy_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataMaskingPolicy

Returns a new instance of DataMaskingPolicy.



213
214
215
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 213

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#predefined_expressionString

A predefined masking expression. Corresponds to the JSON property predefinedExpression

Returns:

  • (String)


204
205
206
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 204

def predefined_expression
  @predefined_expression
end

#routineString

The name of the BigQuery routine that contains the custom masking routine, in the format of projects/project_number/datasets/dataset_id/routines/ routine_id`. Corresponds to the JSON propertyroutine`

Returns:

  • (String)


211
212
213
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 211

def routine
  @routine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



218
219
220
221
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 218

def update!(**args)
  @predefined_expression = args[:predefined_expression] if args.key?(:predefined_expression)
  @routine = args[:routine] if args.key?(:routine)
end