Class: Google::Apis::BigquerydatapolicyV2::DataMaskingPolicy

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

Overview

The policy 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.



291
292
293
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 291

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

Instance Attribute Details

#predefined_expressionString

Optional. A predefined masking expression. Corresponds to the JSON property predefinedExpression

Returns:

  • (String)


282
283
284
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 282

def predefined_expression
  @predefined_expression
end

#routineString

Optional. 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)


289
290
291
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 289

def routine
  @routine
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



296
297
298
299
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 296

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