Class: Google::Apis::CloudsupportV2beta::Comment
- Inherits:
-
Object
- Object
- Google::Apis::CloudsupportV2beta::Comment
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsupport_v2beta/classes.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb,
lib/google/apis/cloudsupport_v2beta/representations.rb
Overview
A comment associated with a support case.
Instance Attribute Summary collapse
-
#body ⇒ String
The full comment body.
-
#create_time ⇒ String
Output only.
-
#creator ⇒ Google::Apis::CloudsupportV2beta::Actor
An object containing information about the effective user and authenticated principal responsible for an action.
-
#name ⇒ String
Output only.
-
#plain_text_body ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Comment
constructor
A new instance of Comment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Comment
Returns a new instance of Comment.
360 361 362 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 360 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
The full comment body. Maximum of 12800 characters. This can contain rich text
syntax.
Corresponds to the JSON property body
336 337 338 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 336 def body @body end |
#create_time ⇒ String
Output only. The time when this comment was created.
Corresponds to the JSON property createTime
341 342 343 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 341 def create_time @create_time end |
#creator ⇒ Google::Apis::CloudsupportV2beta::Actor
An object containing information about the effective user and authenticated
principal responsible for an action.
Corresponds to the JSON property creator
347 348 349 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 347 def creator @creator end |
#name ⇒ String
Output only. The resource name for the comment.
Corresponds to the JSON property name
352 353 354 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 352 def name @name end |
#plain_text_body ⇒ String
Output only. DEPRECATED. An automatically generated plain text version of body
with all rich text syntax stripped.
Corresponds to the JSON property plainTextBody
358 359 360 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 358 def plain_text_body @plain_text_body end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
365 366 367 368 369 370 371 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 365 def update!(**args) @body = args[:body] if args.key?(:body) @create_time = args[:create_time] if args.key?(:create_time) @creator = args[:creator] if args.key?(:creator) @name = args[:name] if args.key?(:name) @plain_text_body = args[:plain_text_body] if args.key?(:plain_text_body) end |