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.



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

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)


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

def translated_content
  @translated_content
end

#translated_titleString

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

Returns:

  • (String)


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

def translated_title
  @translated_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



299
300
301
302
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 299

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