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.
188 189 190 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 188 def initialize(**args) update!(**args) end |
Instance Attribute Details
#predefined_expression ⇒ String
A predefined masking expression.
Corresponds to the JSON property predefinedExpression
179 180 181 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 179 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 propertyroutine`
186 187 188 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 186 def routine @routine end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
193 194 195 196 |
# File 'lib/google/apis/bigquerydatapolicy_v1/classes.rb', line 193 def update!(**args) @predefined_expression = args[:predefined_expression] if args.key?(:predefined_expression) @routine = args[:routine] if args.key?(:routine) end |