Class: Google::Apis::HealthcareV1beta1::TextConfig

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

Configures how to transform sensitive text InfoTypes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextConfig

Returns a new instance of TextConfig.



7117
7118
7119
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7117

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

Instance Attribute Details

#additional_transformationsArray<Google::Apis::HealthcareV1beta1::InfoTypeTransformation>

Additional transformations to apply to the detected data, overriding profile. Corresponds to the JSON property additionalTransformations



7099
7100
7101
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7099

def additional_transformations
  @additional_transformations
end

#exclude_info_typesArray<String>

InfoTypes to skip transforming, overriding profile. Corresponds to the JSON property excludeInfoTypes

Returns:

  • (Array<String>)


7104
7105
7106
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7104

def exclude_info_types
  @exclude_info_types
end

#profile_typeString

Base profile type for text transformation. Corresponds to the JSON property profileType

Returns:

  • (String)


7109
7110
7111
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7109

def profile_type
  @profile_type
end

#transformationsArray<Google::Apis::HealthcareV1beta1::InfoTypeTransformation>

The transformations to apply to the detected data. Deprecated. Use additional_transformations instead. Corresponds to the JSON property transformations



7115
7116
7117
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7115

def transformations
  @transformations
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7122
7123
7124
7125
7126
7127
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 7122

def update!(**args)
  @additional_transformations = args[:additional_transformations] if args.key?(:additional_transformations)
  @exclude_info_types = args[:exclude_info_types] if args.key?(:exclude_info_types)
  @profile_type = args[:profile_type] if args.key?(:profile_type)
  @transformations = args[:transformations] if args.key?(:transformations)
end