Class: Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeDescription

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dlp_v2/classes.rb,
lib/google/apis/dlp_v2/representations.rb,
lib/google/apis/dlp_v2/representations.rb

Overview

InfoType description.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2InfoTypeDescription

Returns a new instance of GooglePrivacyDlpV2InfoTypeDescription.



4247
4248
4249
# File 'lib/google/apis/dlp_v2/classes.rb', line 4247

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

Instance Attribute Details

#categoriesArray<Google::Apis::DlpV2::GooglePrivacyDlpV2InfoTypeCategory>

The category of the infoType. Corresponds to the JSON property categories



4213
4214
4215
# File 'lib/google/apis/dlp_v2/classes.rb', line 4213

def categories
  @categories
end

#descriptionString

Description of the infotype. Translated when language is provided in the request. Corresponds to the JSON property description

Returns:

  • (String)


4219
4220
4221
# File 'lib/google/apis/dlp_v2/classes.rb', line 4219

def description
  @description
end

#display_nameString

Human readable form of the infoType name. Corresponds to the JSON property displayName

Returns:

  • (String)


4224
4225
4226
# File 'lib/google/apis/dlp_v2/classes.rb', line 4224

def display_name
  @display_name
end

#nameString

Internal name of the infoType. Corresponds to the JSON property name

Returns:

  • (String)


4229
4230
4231
# File 'lib/google/apis/dlp_v2/classes.rb', line 4229

def name
  @name
end

#sensitivity_scoreGoogle::Apis::DlpV2::GooglePrivacyDlpV2SensitivityScore

Score is calculated from of all elements in the data profile. A higher level means the data is more sensitive. Corresponds to the JSON property sensitivityScore



4235
4236
4237
# File 'lib/google/apis/dlp_v2/classes.rb', line 4235

def sensitivity_score
  @sensitivity_score
end

#supported_byArray<String>

Which parts of the API supports this InfoType. Corresponds to the JSON property supportedBy

Returns:

  • (Array<String>)


4240
4241
4242
# File 'lib/google/apis/dlp_v2/classes.rb', line 4240

def supported_by
  @supported_by
end

#versionsArray<Google::Apis::DlpV2::GooglePrivacyDlpV2VersionDescription>

A list of available versions for the infotype. Corresponds to the JSON property versions



4245
4246
4247
# File 'lib/google/apis/dlp_v2/classes.rb', line 4245

def versions
  @versions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4252
4253
4254
4255
4256
4257
4258
4259
4260
# File 'lib/google/apis/dlp_v2/classes.rb', line 4252

def update!(**args)
  @categories = args[:categories] if args.key?(:categories)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @name = args[:name] if args.key?(:name)
  @sensitivity_score = args[:sensitivity_score] if args.key?(:sensitivity_score)
  @supported_by = args[:supported_by] if args.key?(:supported_by)
  @versions = args[:versions] if args.key?(:versions)
end