Class: Google::Apis::CloudsupportV2beta::Comment

Inherits:
Object
  • Object
show all
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

Case comments are the main way Google Support communicates 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.



400
401
402
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 400

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

Instance Attribute Details

#bodyString

The full comment body. Maximum of 12800 characters. This can contain rich text syntax. Corresponds to the JSON property body

Returns:

  • (String)


375
376
377
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 375

def body
  @body
end

#create_timeString

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

Returns:

  • (String)


380
381
382
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 380

def create_time
  @create_time
end

#creatorGoogle::Apis::CloudsupportV2beta::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



387
388
389
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 387

def creator
  @creator
end

#nameString

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

Returns:

  • (String)


392
393
394
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 392

def name
  @name
end

#plain_text_bodyString

Output only. DEPRECATED. An automatically generated plain text version of body with all rich text syntax stripped. Corresponds to the JSON property plainTextBody

Returns:

  • (String)


398
399
400
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 398

def plain_text_body
  @plain_text_body
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



405
406
407
408
409
410
411
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 405

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