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.



1578
1579
1580
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1578

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>)


1571
1572
1573
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1571

def group_indexes
  @group_indexes
end

#patternString

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

Returns:

  • (String)


1576
1577
1578
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1576

def pattern
  @pattern
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1583
1584
1585
1586
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 1583

def update!(**args)
  @group_indexes = args[:group_indexes] if args.key?(:group_indexes)
  @pattern = args[:pattern] if args.key?(:pattern)
end