Class: Google::Apis::CloudsupportV2::Comment

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

Overview

A comment associated with a support case. Case comments are the primary way for Google Support to communicate with a user who has opened a case. When a user responds to Google Support, the user's responses also appear as comments.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Comment

Returns a new instance of Comment.



386
387
388
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 386

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

Instance Attribute Details

#bodyString

The full comment body. Maximum of 12800 characters. Corresponds to the JSON property body

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 361

def body
  @body
end

#create_timeString

Output only. The time when the comment was created. Corresponds to the JSON property createTime

Returns:

  • (String)


366
367
368
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 366

def create_time
  @create_time
end

#creatorGoogle::Apis::CloudsupportV2::Actor

An Actor represents an entity that performed an action. For example, an actor could be a user who posted a comment on a support case, a user who uploaded an attachment, or a service account that created a support case. Corresponds to the JSON property creator



373
374
375
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 373

def creator
  @creator
end

#nameString

Output only. Identifier. The resource name of the comment. Corresponds to the JSON property name

Returns:

  • (String)


378
379
380
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 378

def name
  @name
end

#plain_text_bodyString

Output only. DEPRECATED. DO NOT USE. A duplicate of the body field. This field is only present for legacy reasons. Corresponds to the JSON property plainTextBody

Returns:

  • (String)


384
385
386
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 384

def plain_text_body
  @plain_text_body
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



391
392
393
394
395
396
397
# File 'lib/google/apis/cloudsupport_v2/classes.rb', line 391

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