Class: Google::Apis::HealthcareV1beta1::CustomRegex
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::CustomRegex
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb
Overview
Defines a custom regular expression pattern to detect and redact in the image.
Instance Attribute Summary collapse
-
#group_indexes ⇒ Array<Fixnum>
Optional.
-
#pattern ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomRegex
constructor
A new instance of CustomRegex.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomRegex
Returns a new instance of CustomRegex.
1572 1573 1574 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1572 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_indexes ⇒ Array<Fixnum>
Optional. The capturing group indexes to redact. skip_request_analyics: true
Corresponds to the JSON property groupIndexes
1565 1566 1567 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1565 def group_indexes @group_indexes end |
#pattern ⇒ String
Optional. The regular expression pattern to match.
Corresponds to the JSON property pattern
1570 1571 1572 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1570 def pattern @pattern end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1577 1578 1579 1580 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1577 def update!(**args) @group_indexes = args[:group_indexes] if args.key?(:group_indexes) @pattern = args[:pattern] if args.key?(:pattern) end |