Class: Google::Apis::ThreatintelligenceV1beta::AlertDocumentTranslation
- Inherits:
-
Object
- Object
- Google::Apis::ThreatintelligenceV1beta::AlertDocumentTranslation
- 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
-
#translated_content ⇒ String
Output only.
-
#translated_title ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AlertDocumentTranslation
constructor
A new instance of AlertDocumentTranslation.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_content ⇒ String
Output only. The translated content of the document.
Corresponds to the JSON property translatedContent
280 281 282 |
# File 'lib/google/apis/threatintelligence_v1beta/classes.rb', line 280 def translated_content @translated_content end |
#translated_title ⇒ String
Output only. The translated title of the document.
Corresponds to the JSON property translatedTitle
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 |