class Google::Apis::DriveV3::File::Capabilities

Capabilities the current user has on the file.

Attributes

can_comment[RW]

Whether the user can comment on the file. Corresponds to the JSON property `canComment` @return [Boolean]

can_comment?[RW]

Whether the user can comment on the file. Corresponds to the JSON property `canComment` @return [Boolean]

can_copy[RW]

Whether the user can copy the file. Corresponds to the JSON property `canCopy` @return [Boolean]

can_copy?[RW]

Whether the user can copy the file. Corresponds to the JSON property `canCopy` @return [Boolean]

can_edit[RW]

Whether the user can edit the file's content. Corresponds to the JSON property `canEdit` @return [Boolean]

can_edit?[RW]

Whether the user can edit the file's content. Corresponds to the JSON property `canEdit` @return [Boolean]

can_read_revisions[RW]

Whether the current user has read access to the Revisions resource of the file. Corresponds to the JSON property `canReadRevisions` @return [Boolean]

can_read_revisions?[RW]

Whether the current user has read access to the Revisions resource of the file. Corresponds to the JSON property `canReadRevisions` @return [Boolean]

can_share[RW]

Whether the user can modify the file's permissions and sharing settings. Corresponds to the JSON property `canShare` @return [Boolean]

can_share?[RW]

Whether the user can modify the file's permissions and sharing settings. Corresponds to the JSON property `canShare` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/drive_v3/classes.rb, line 804
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/drive_v3/classes.rb, line 809
def update!(**args)
  @can_comment = args[:can_comment] if args.key?(:can_comment)
  @can_copy = args[:can_copy] if args.key?(:can_copy)
  @can_edit = args[:can_edit] if args.key?(:can_edit)
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
  @can_share = args[:can_share] if args.key?(:can_share)
end