Class: Google::Apis::ThreatintelligenceV1beta::AlertDocumentTranslation

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

Overview

The translation of an alert document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AlertDocumentTranslation

Returns a new instance of AlertDocumentTranslation.



288
289
290
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 288

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

Instance Attribute Details

#translated_contentString

Output only. The translated content of the document. Corresponds to the JSON property translatedContent

Returns:

  • (String)


281
282
283
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 281

def translated_content
  @translated_content
end

#translated_titleString

Output only. The translated title of the document. Corresponds to the JSON property translatedTitle

Returns:

  • (String)


286
287
288
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 286

def translated_title
  @translated_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



293
294
295
296
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 293

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