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. 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
-
#body ⇒ String
The full comment body.
-
#create_time ⇒ String
Output only.
-
#creator ⇒ Google::Apis::CloudsupportV2beta::Actor
An Actor represents an entity that performed 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.
398 399 400 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 398 def initialize(**args) update!(**args) end |
Instance Attribute Details
#body ⇒ String
The full comment body. Maximum of 12800 characters.
Corresponds to the JSON property body
373 374 375 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 373 def body @body end |
#create_time ⇒ String
Output only. The time when the comment was created.
Corresponds to the JSON property createTime
378 379 380 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 378 def create_time @create_time end |
#creator ⇒ Google::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
385 386 387 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 385 def creator @creator end |
#name ⇒ String
Output only. Identifier. The resource name of the comment.
Corresponds to the JSON property name
390 391 392 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 390 def name @name end |
#plain_text_body ⇒ String
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
396 397 398 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 396 def plain_text_body @plain_text_body end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
403 404 405 406 407 408 409 |
# File 'lib/google/apis/cloudsupport_v2beta/classes.rb', line 403 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 |