class Google::Apis::DriveV3::TeamDrive::Capabilities

Capabilities the current user has on this Team Drive.

Attributes

can_add_children[RW]

Whether the current user can add children to folders in this Team Drive. Corresponds to the JSON property `canAddChildren` @return [Boolean]

can_add_children?[RW]

Whether the current user can add children to folders in this Team Drive. Corresponds to the JSON property `canAddChildren` @return [Boolean]

can_change_copy_requires_writer_permission_restriction[RW]

Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction` @return [Boolean]

can_change_copy_requires_writer_permission_restriction?[RW]

Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive. Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction` @return [Boolean]

can_change_domain_users_only_restriction[RW]

Whether the current user can change the domainUsersOnly restriction of this Team Drive. Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction` @return [Boolean]

can_change_domain_users_only_restriction?[RW]

Whether the current user can change the domainUsersOnly restriction of this Team Drive. Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction` @return [Boolean]

can_change_team_drive_background[RW]

Whether the current user can change the background of this Team Drive. Corresponds to the JSON property `canChangeTeamDriveBackground` @return [Boolean]

can_change_team_drive_background?[RW]

Whether the current user can change the background of this Team Drive. Corresponds to the JSON property `canChangeTeamDriveBackground` @return [Boolean]

can_change_team_members_only_restriction[RW]

Whether the current user can change the teamMembersOnly restriction of this Team Drive. Corresponds to the JSON property `canChangeTeamMembersOnlyRestriction` @return [Boolean]

can_change_team_members_only_restriction?[RW]

Whether the current user can change the teamMembersOnly restriction of this Team Drive. Corresponds to the JSON property `canChangeTeamMembersOnlyRestriction` @return [Boolean]

can_comment[RW]

Whether the current user can comment on files in this Team Drive. Corresponds to the JSON property `canComment` @return [Boolean]

can_comment?[RW]

Whether the current user can comment on files in this Team Drive. Corresponds to the JSON property `canComment` @return [Boolean]

can_copy[RW]

Whether the current user can copy files in this Team Drive. Corresponds to the JSON property `canCopy` @return [Boolean]

can_copy?[RW]

Whether the current user can copy files in this Team Drive. Corresponds to the JSON property `canCopy` @return [Boolean]

can_delete_children[RW]

Whether the current user can delete children from folders in this Team Drive. Corresponds to the JSON property `canDeleteChildren` @return [Boolean]

can_delete_children?[RW]

Whether the current user can delete children from folders in this Team Drive. Corresponds to the JSON property `canDeleteChildren` @return [Boolean]

can_delete_team_drive[RW]

Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive. Corresponds to the JSON property `canDeleteTeamDrive` @return [Boolean]

can_delete_team_drive?[RW]

Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive. Corresponds to the JSON property `canDeleteTeamDrive` @return [Boolean]

can_download[RW]

Whether the current user can download files in this Team Drive. Corresponds to the JSON property `canDownload` @return [Boolean]

can_download?[RW]

Whether the current user can download files in this Team Drive. Corresponds to the JSON property `canDownload` @return [Boolean]

can_edit[RW]

Whether the current user can edit files in this Team Drive Corresponds to the JSON property `canEdit` @return [Boolean]

can_edit?[RW]

Whether the current user can edit files in this Team Drive Corresponds to the JSON property `canEdit` @return [Boolean]

can_list_children[RW]

Whether the current user can list the children of folders in this Team Drive. Corresponds to the JSON property `canListChildren` @return [Boolean]

can_list_children?[RW]

Whether the current user can list the children of folders in this Team Drive. Corresponds to the JSON property `canListChildren` @return [Boolean]

can_manage_members[RW]

Whether the current user can add members to this Team Drive or remove them or change their role. Corresponds to the JSON property `canManageMembers` @return [Boolean]

can_manage_members?[RW]

Whether the current user can add members to this Team Drive or remove them or change their role. Corresponds to the JSON property `canManageMembers` @return [Boolean]

can_read_revisions[RW]

Whether the current user can read the revisions resource of files in this Team Drive. Corresponds to the JSON property `canReadRevisions` @return [Boolean]

can_read_revisions?[RW]

Whether the current user can read the revisions resource of files in this Team Drive. Corresponds to the JSON property `canReadRevisions` @return [Boolean]

can_remove_children[RW]

Deprecated - use canDeleteChildren or canTrashChildren instead. Corresponds to the JSON property `canRemoveChildren` @return [Boolean]

can_remove_children?[RW]

Deprecated - use canDeleteChildren or canTrashChildren instead. Corresponds to the JSON property `canRemoveChildren` @return [Boolean]

can_rename[RW]

Whether the current user can rename files or folders in this Team Drive. Corresponds to the JSON property `canRename` @return [Boolean]

can_rename?[RW]

Whether the current user can rename files or folders in this Team Drive. Corresponds to the JSON property `canRename` @return [Boolean]

can_rename_team_drive[RW]

Whether the current user can rename this Team Drive. Corresponds to the JSON property `canRenameTeamDrive` @return [Boolean]

can_rename_team_drive?[RW]

Whether the current user can rename this Team Drive. Corresponds to the JSON property `canRenameTeamDrive` @return [Boolean]

can_share[RW]

Whether the current user can share files or folders in this Team Drive. Corresponds to the JSON property `canShare` @return [Boolean]

can_share?[RW]

Whether the current user can share files or folders in this Team Drive. Corresponds to the JSON property `canShare` @return [Boolean]

can_trash_children[RW]

Whether the current user can trash children from folders in this Team Drive. Corresponds to the JSON property `canTrashChildren` @return [Boolean]

can_trash_children?[RW]

Whether the current user can trash children from folders in this Team Drive. Corresponds to the JSON property `canTrashChildren` @return [Boolean]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v3/classes.rb, line 2934
def update!(**args)
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
  @can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
  @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
  @can_change_team_drive_background = args[:can_change_team_drive_background] if args.key?(:can_change_team_drive_background)
  @can_change_team_members_only_restriction = args[:can_change_team_members_only_restriction] if args.key?(:can_change_team_members_only_restriction)
  @can_comment = args[:can_comment] if args.key?(:can_comment)
  @can_copy = args[:can_copy] if args.key?(:can_copy)
  @can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
  @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
  @can_download = args[:can_download] if args.key?(:can_download)
  @can_edit = args[:can_edit] if args.key?(:can_edit)
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
  @can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members)
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
  @can_rename = args[:can_rename] if args.key?(:can_rename)
  @can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive)
  @can_share = args[:can_share] if args.key?(:can_share)
  @can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
end