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.



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

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)


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

def translated_content
  @translated_content
end

#translated_titleString

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

Returns:

  • (String)


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

def translated_title
  @translated_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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