Class: Google::Apis::HealthcareV1beta1::ImageConfig

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

Specifies how to handle de-identification of image pixels.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ImageConfig

Returns a new instance of ImageConfig.



4618
4619
4620
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4618

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additional_info_typesArray<String>

Additional InfoTypes to redact in the images in addition to those used by text_redaction_mode. Can only be used when text_redaction_mode is set to REDACT_SENSITIVE_TEXT, REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS or TEXT_REDACTION_MODE_UNSPECIFIED. Corresponds to the JSON property additionalInfoTypes

Returns:

  • (Array<String>)


4604
4605
4606
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4604

def additional_info_types
  @additional_info_types
end

#exclude_info_typesArray<String>

InfoTypes to skip redacting, overriding those used by text_redaction_mode. Can only be used when text_redaction_mode is set to REDACT_SENSITIVE_TEXT or REDACT_SENSITIVE_TEXT_CLEAN_DESCRIPTORS. Corresponds to the JSON property excludeInfoTypes

Returns:

  • (Array<String>)


4611
4612
4613
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4611

def exclude_info_types
  @exclude_info_types
end

#text_redaction_modeString

Determines how to redact text from image. Corresponds to the JSON property textRedactionMode

Returns:

  • (String)


4616
4617
4618
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4616

def text_redaction_mode
  @text_redaction_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4623
4624
4625
4626
4627
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 4623

def update!(**args)
  @additional_info_types = args[:additional_info_types] if args.key?(:additional_info_types)
  @exclude_info_types = args[:exclude_info_types] if args.key?(:exclude_info_types)
  @text_redaction_mode = args[:text_redaction_mode] if args.key?(:text_redaction_mode)
end