Class: Google::Apis::BigquerydatapolicyV2::DataMaskingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::BigquerydatapolicyV2::DataMaskingPolicy
- 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
-
#predefined_expression ⇒ String
Optional.
-
#routine ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataMaskingPolicy
constructor
A new instance of DataMaskingPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_expression ⇒ String
Optional. A predefined masking expression.
Corresponds to the JSON property predefinedExpression
282 283 284 |
# File 'lib/google/apis/bigquerydatapolicy_v2/classes.rb', line 282 def predefined_expression @predefined_expression end |
#routine ⇒ String
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`
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 |