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

A comment associated with a support case.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Comment

Returns a new instance of Comment.



333
334
335
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 333

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

Instance Attribute Details

#bodyString

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

Returns:

  • (String)


309
310
311
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 309

def body
  @body
end

#create_timeString

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

Returns:

  • (String)


314
315
316
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 314

def create_time
  @create_time
end

#creatorGoogle::Apis::CloudsupportV2beta::Actor

An object containing information about the effective user and authenticated principal responsible for an action. Corresponds to the JSON property creator



320
321
322
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 320

def creator
  @creator
end

#nameString

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

Returns:

  • (String)


325
326
327
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 325

def name
  @name
end

#plain_text_bodyString

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

Returns:

  • (String)


331
332
333
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 331

def plain_text_body
  @plain_text_body
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



338
339
340
341
342
343
344
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 338

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