Class: Google::Apis::BigquerydatapolicyV1::DataMaskingPolicy
- Inherits:
-
Object
- Object
- Google::Apis::BigquerydatapolicyV1::DataMaskingPolicy
- 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
-
#predefined_expression ⇒ String
A predefined masking expression.
-
#routine ⇒ String
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``.
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.
213 214 215 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 213 def initialize(**args) update!(**args) end |
Instance Attribute Details
#predefined_expression ⇒ String
A predefined masking expression.
Corresponds to the JSON property predefinedExpression
204 205 206 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 204 def predefined_expression @predefined_expression end |
#routine ⇒ String
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 property
routine`
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 |