Class: Google::Apis::HealthcareV1beta1::CustomRegex

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_indexesArray<Fixnum>

Optional. The capturing group indexes to redact. skip_request_analyics: true Corresponds to the JSON property groupIndexes

Returns:

  • (Array<Fixnum>)


1565
1566
1567
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1565

def group_indexes
  @group_indexes
end

#patternString

Optional. The regular expression pattern to match. Corresponds to the JSON property pattern

Returns:

  • (String)


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