Class: Google::Apis::DriveV3::Reply

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

Overview

A reply to a comment on a file. Some resource methods (such as replies.update ) require a replyId. Use the replies.list method to retrieve the ID for a reply.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Reply

Returns a new instance of Reply.



2887
2888
2889
# File 'lib/google/apis/drive_v3/classes.rb', line 2887

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

Instance Attribute Details

#actionString

The action the reply performed to the parent comment. Valid values are: * resolve * reopen Corresponds to the JSON property action

Returns:

  • (String)


2840
2841
2842
# File 'lib/google/apis/drive_v3/classes.rb', line 2840

def action
  @action
end

#authorGoogle::Apis::DriveV3::User

Information about a Drive user. Corresponds to the JSON property author



2845
2846
2847
# File 'lib/google/apis/drive_v3/classes.rb', line 2845

def author
  @author
end

#contentString

The plain text content of the reply. This field is used for setting the content, while htmlContent should be displayed. This is required on creates if no action is specified. Corresponds to the JSON property content

Returns:

  • (String)


2852
2853
2854
# File 'lib/google/apis/drive_v3/classes.rb', line 2852

def content
  @content
end

#created_timeDateTime

The time at which the reply was created (RFC 3339 date-time). Corresponds to the JSON property createdTime

Returns:

  • (DateTime)


2857
2858
2859
# File 'lib/google/apis/drive_v3/classes.rb', line 2857

def created_time
  @created_time
end

#deletedBoolean Also known as: deleted?

Output only. Whether the reply has been deleted. A deleted reply has no content. Corresponds to the JSON property deleted

Returns:

  • (Boolean)


2863
2864
2865
# File 'lib/google/apis/drive_v3/classes.rb', line 2863

def deleted
  @deleted
end

#html_contentString

Output only. The content of the reply with HTML formatting. Corresponds to the JSON property htmlContent

Returns:

  • (String)


2869
2870
2871
# File 'lib/google/apis/drive_v3/classes.rb', line 2869

def html_content
  @html_content
end

#idString

Output only. The ID of the reply. Corresponds to the JSON property id

Returns:

  • (String)


2874
2875
2876
# File 'lib/google/apis/drive_v3/classes.rb', line 2874

def id
  @id
end

#kindString

Output only. Identifies what kind of resource this is. Value: the fixed string "drive#reply". Corresponds to the JSON property kind

Returns:

  • (String)


2880
2881
2882
# File 'lib/google/apis/drive_v3/classes.rb', line 2880

def kind
  @kind
end

#modified_timeDateTime

The last time the reply was modified (RFC 3339 date-time). Corresponds to the JSON property modifiedTime

Returns:

  • (DateTime)


2885
2886
2887
# File 'lib/google/apis/drive_v3/classes.rb', line 2885

def modified_time
  @modified_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
# File 'lib/google/apis/drive_v3/classes.rb', line 2892

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @author = args[:author] if args.key?(:author)
  @content = args[:content] if args.key?(:content)
  @created_time = args[:created_time] if args.key?(:created_time)
  @deleted = args[:deleted] if args.key?(:deleted)
  @html_content = args[:html_content] if args.key?(:html_content)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @modified_time = args[:modified_time] if args.key?(:modified_time)
end