drive  v2
Public Member Functions | Static Public Member Functions | List of all members
google_drive_api::File::FileCapabilities Class Reference

#include <file.h>

Inheritance diagram for google_drive_api::File::FileCapabilities:

Public Member Functions

 FileCapabilities (const Json::Value &storage)
 
 FileCapabilities (Json::Value *storage)
 
virtual ~FileCapabilities ()
 
const StringPiece GetTypeName () const
 
bool has_can_add_children () const
 
void clear_can_add_children ()
 
bool get_can_add_children () const
 
void set_can_add_children (bool value)
 
bool has_can_add_my_drive_parent () const
 
void clear_can_add_my_drive_parent ()
 
bool get_can_add_my_drive_parent () const
 
void set_can_add_my_drive_parent (bool value)
 
bool has_can_change_copy_requires_writer_permission () const
 
void clear_can_change_copy_requires_writer_permission ()
 
bool get_can_change_copy_requires_writer_permission () const
 
void set_can_change_copy_requires_writer_permission (bool value)
 
bool has_can_change_restricted_download () const
 
void clear_can_change_restricted_download ()
 
bool get_can_change_restricted_download () const
 
void set_can_change_restricted_download (bool value)
 
bool has_can_comment () const
 
void clear_can_comment ()
 
bool get_can_comment () const
 
void set_can_comment (bool value)
 
bool has_can_copy () const
 
void clear_can_copy ()
 
bool get_can_copy () const
 
void set_can_copy (bool value)
 
bool has_can_delete () const
 
void clear_can_delete ()
 
bool get_can_delete () const
 
void set_can_delete (bool value)
 
bool has_can_delete_children () const
 
void clear_can_delete_children ()
 
bool get_can_delete_children () const
 
void set_can_delete_children (bool value)
 
bool has_can_download () const
 
void clear_can_download ()
 
bool get_can_download () const
 
void set_can_download (bool value)
 
bool has_can_edit () const
 
void clear_can_edit ()
 
bool get_can_edit () const
 
void set_can_edit (bool value)
 
bool has_can_list_children () const
 
void clear_can_list_children ()
 
bool get_can_list_children () const
 
void set_can_list_children (bool value)
 
bool has_can_modify_content () const
 
void clear_can_modify_content ()
 
bool get_can_modify_content () const
 
void set_can_modify_content (bool value)
 
bool has_can_move_children_out_of_drive () const
 
void clear_can_move_children_out_of_drive ()
 
bool get_can_move_children_out_of_drive () const
 
void set_can_move_children_out_of_drive (bool value)
 
bool has_can_move_children_out_of_team_drive () const
 
void clear_can_move_children_out_of_team_drive ()
 
bool get_can_move_children_out_of_team_drive () const
 
void set_can_move_children_out_of_team_drive (bool value)
 
bool has_can_move_children_within_drive () const
 
void clear_can_move_children_within_drive ()
 
bool get_can_move_children_within_drive () const
 
void set_can_move_children_within_drive (bool value)
 
bool has_can_move_children_within_team_drive () const
 
void clear_can_move_children_within_team_drive ()
 
bool get_can_move_children_within_team_drive () const
 
void set_can_move_children_within_team_drive (bool value)
 
bool has_can_move_item_into_team_drive () const
 
void clear_can_move_item_into_team_drive ()
 
bool get_can_move_item_into_team_drive () const
 
void set_can_move_item_into_team_drive (bool value)
 
bool has_can_move_item_out_of_drive () const
 
void clear_can_move_item_out_of_drive ()
 
bool get_can_move_item_out_of_drive () const
 
void set_can_move_item_out_of_drive (bool value)
 
bool has_can_move_item_out_of_team_drive () const
 
void clear_can_move_item_out_of_team_drive ()
 
bool get_can_move_item_out_of_team_drive () const
 
void set_can_move_item_out_of_team_drive (bool value)
 
bool has_can_move_item_within_drive () const
 
void clear_can_move_item_within_drive ()
 
bool get_can_move_item_within_drive () const
 
void set_can_move_item_within_drive (bool value)
 
bool has_can_move_item_within_team_drive () const
 
void clear_can_move_item_within_team_drive ()
 
bool get_can_move_item_within_team_drive () const
 
void set_can_move_item_within_team_drive (bool value)
 
bool has_can_move_team_drive_item () const
 
void clear_can_move_team_drive_item ()
 
bool get_can_move_team_drive_item () const
 
void set_can_move_team_drive_item (bool value)
 
bool has_can_read_drive () const
 
void clear_can_read_drive ()
 
bool get_can_read_drive () const
 
void set_can_read_drive (bool value)
 
bool has_can_read_revisions () const
 
void clear_can_read_revisions ()
 
bool get_can_read_revisions () const
 
void set_can_read_revisions (bool value)
 
bool has_can_read_team_drive () const
 
void clear_can_read_team_drive ()
 
bool get_can_read_team_drive () const
 
void set_can_read_team_drive (bool value)
 
bool has_can_remove_children () const
 
void clear_can_remove_children ()
 
bool get_can_remove_children () const
 
void set_can_remove_children (bool value)
 
bool has_can_remove_my_drive_parent () const
 
void clear_can_remove_my_drive_parent ()
 
bool get_can_remove_my_drive_parent () const
 
void set_can_remove_my_drive_parent (bool value)
 
bool has_can_rename () const
 
void clear_can_rename ()
 
bool get_can_rename () const
 
void set_can_rename (bool value)
 
bool has_can_share () const
 
void clear_can_share ()
 
bool get_can_share () const
 
void set_can_share (bool value)
 
bool has_can_trash () const
 
void clear_can_trash ()
 
bool get_can_trash () const
 
void set_can_trash (bool value)
 
bool has_can_trash_children () const
 
void clear_can_trash_children ()
 
bool get_can_trash_children () const
 
void set_can_trash_children (bool value)
 
bool has_can_untrash () const
 
void clear_can_untrash ()
 
bool get_can_untrash () const
 
void set_can_untrash (bool value)
 

Static Public Member Functions

static FileCapabilitiesNew ()
 

Detailed Description

Capabilities the current user has on this file. Each capability corresponds to a fine-grained action that a user may take.

Constructor & Destructor Documentation

◆ FileCapabilities() [1/2]

google_drive_api::File::FileCapabilities::FileCapabilities ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ FileCapabilities() [2/2]

google_drive_api::File::FileCapabilities::FileCapabilities ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.

◆ ~FileCapabilities()

google_drive_api::File::FileCapabilities::~FileCapabilities ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_can_add_children()

void google_drive_api::File::FileCapabilities::clear_can_add_children ( )
inline

Clears the 'canAddChildren' attribute.

◆ clear_can_add_my_drive_parent()

void google_drive_api::File::FileCapabilities::clear_can_add_my_drive_parent ( )
inline

Clears the 'canAddMyDriveParent' attribute.

◆ clear_can_change_copy_requires_writer_permission()

void google_drive_api::File::FileCapabilities::clear_can_change_copy_requires_writer_permission ( )
inline

Clears the 'canChangeCopyRequiresWriterPermission' attribute.

◆ clear_can_change_restricted_download()

void google_drive_api::File::FileCapabilities::clear_can_change_restricted_download ( )
inline

Clears the 'canChangeRestrictedDownload' attribute.

◆ clear_can_comment()

void google_drive_api::File::FileCapabilities::clear_can_comment ( )
inline

Clears the 'canComment' attribute.

◆ clear_can_copy()

void google_drive_api::File::FileCapabilities::clear_can_copy ( )
inline

Clears the 'canCopy' attribute.

◆ clear_can_delete()

void google_drive_api::File::FileCapabilities::clear_can_delete ( )
inline

Clears the 'canDelete' attribute.

◆ clear_can_delete_children()

void google_drive_api::File::FileCapabilities::clear_can_delete_children ( )
inline

Clears the 'canDeleteChildren' attribute.

◆ clear_can_download()

void google_drive_api::File::FileCapabilities::clear_can_download ( )
inline

Clears the 'canDownload' attribute.

◆ clear_can_edit()

void google_drive_api::File::FileCapabilities::clear_can_edit ( )
inline

Clears the 'canEdit' attribute.

◆ clear_can_list_children()

void google_drive_api::File::FileCapabilities::clear_can_list_children ( )
inline

Clears the 'canListChildren' attribute.

◆ clear_can_modify_content()

void google_drive_api::File::FileCapabilities::clear_can_modify_content ( )
inline

Clears the 'canModifyContent' attribute.

◆ clear_can_move_children_out_of_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_children_out_of_drive ( )
inline

Clears the 'canMoveChildrenOutOfDrive' attribute.

◆ clear_can_move_children_out_of_team_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_children_out_of_team_drive ( )
inline

Clears the 'canMoveChildrenOutOfTeamDrive' attribute.

◆ clear_can_move_children_within_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_children_within_drive ( )
inline

Clears the 'canMoveChildrenWithinDrive' attribute.

◆ clear_can_move_children_within_team_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_children_within_team_drive ( )
inline

Clears the 'canMoveChildrenWithinTeamDrive' attribute.

◆ clear_can_move_item_into_team_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_item_into_team_drive ( )
inline

Clears the 'canMoveItemIntoTeamDrive' attribute.

◆ clear_can_move_item_out_of_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_item_out_of_drive ( )
inline

Clears the 'canMoveItemOutOfDrive' attribute.

◆ clear_can_move_item_out_of_team_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_item_out_of_team_drive ( )
inline

Clears the 'canMoveItemOutOfTeamDrive' attribute.

◆ clear_can_move_item_within_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_item_within_drive ( )
inline

Clears the 'canMoveItemWithinDrive' attribute.

◆ clear_can_move_item_within_team_drive()

void google_drive_api::File::FileCapabilities::clear_can_move_item_within_team_drive ( )
inline

Clears the 'canMoveItemWithinTeamDrive' attribute.

◆ clear_can_move_team_drive_item()

void google_drive_api::File::FileCapabilities::clear_can_move_team_drive_item ( )
inline

Clears the 'canMoveTeamDriveItem' attribute.

◆ clear_can_read_drive()

void google_drive_api::File::FileCapabilities::clear_can_read_drive ( )
inline

Clears the 'canReadDrive' attribute.

◆ clear_can_read_revisions()

void google_drive_api::File::FileCapabilities::clear_can_read_revisions ( )
inline

Clears the 'canReadRevisions' attribute.

◆ clear_can_read_team_drive()

void google_drive_api::File::FileCapabilities::clear_can_read_team_drive ( )
inline

Clears the 'canReadTeamDrive' attribute.

◆ clear_can_remove_children()

void google_drive_api::File::FileCapabilities::clear_can_remove_children ( )
inline

Clears the 'canRemoveChildren' attribute.

◆ clear_can_remove_my_drive_parent()

void google_drive_api::File::FileCapabilities::clear_can_remove_my_drive_parent ( )
inline

Clears the 'canRemoveMyDriveParent' attribute.

◆ clear_can_rename()

void google_drive_api::File::FileCapabilities::clear_can_rename ( )
inline

Clears the 'canRename' attribute.

◆ clear_can_share()

void google_drive_api::File::FileCapabilities::clear_can_share ( )
inline

Clears the 'canShare' attribute.

◆ clear_can_trash()

void google_drive_api::File::FileCapabilities::clear_can_trash ( )
inline

Clears the 'canTrash' attribute.

◆ clear_can_trash_children()

void google_drive_api::File::FileCapabilities::clear_can_trash_children ( )
inline

Clears the 'canTrashChildren' attribute.

◆ clear_can_untrash()

void google_drive_api::File::FileCapabilities::clear_can_untrash ( )
inline

Clears the 'canUntrash' attribute.

◆ get_can_add_children()

bool google_drive_api::File::FileCapabilities::get_can_add_children ( ) const
inline

Get the value of the 'canAddChildren' attribute.

◆ get_can_add_my_drive_parent()

bool google_drive_api::File::FileCapabilities::get_can_add_my_drive_parent ( ) const
inline

Get the value of the 'canAddMyDriveParent' attribute.

◆ get_can_change_copy_requires_writer_permission()

bool google_drive_api::File::FileCapabilities::get_can_change_copy_requires_writer_permission ( ) const
inline

Get the value of the 'canChangeCopyRequiresWriterPermission' attribute.

◆ get_can_change_restricted_download()

bool google_drive_api::File::FileCapabilities::get_can_change_restricted_download ( ) const
inline

Get the value of the 'canChangeRestrictedDownload' attribute.

◆ get_can_comment()

bool google_drive_api::File::FileCapabilities::get_can_comment ( ) const
inline

Get the value of the 'canComment' attribute.

◆ get_can_copy()

bool google_drive_api::File::FileCapabilities::get_can_copy ( ) const
inline

Get the value of the 'canCopy' attribute.

◆ get_can_delete()

bool google_drive_api::File::FileCapabilities::get_can_delete ( ) const
inline

Get the value of the 'canDelete' attribute.

◆ get_can_delete_children()

bool google_drive_api::File::FileCapabilities::get_can_delete_children ( ) const
inline

Get the value of the 'canDeleteChildren' attribute.

◆ get_can_download()

bool google_drive_api::File::FileCapabilities::get_can_download ( ) const
inline

Get the value of the 'canDownload' attribute.

◆ get_can_edit()

bool google_drive_api::File::FileCapabilities::get_can_edit ( ) const
inline

Get the value of the 'canEdit' attribute.

◆ get_can_list_children()

bool google_drive_api::File::FileCapabilities::get_can_list_children ( ) const
inline

Get the value of the 'canListChildren' attribute.

◆ get_can_modify_content()

bool google_drive_api::File::FileCapabilities::get_can_modify_content ( ) const
inline

Get the value of the 'canModifyContent' attribute.

◆ get_can_move_children_out_of_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_children_out_of_drive ( ) const
inline

Get the value of the 'canMoveChildrenOutOfDrive' attribute.

◆ get_can_move_children_out_of_team_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_children_out_of_team_drive ( ) const
inline

Get the value of the 'canMoveChildrenOutOfTeamDrive' attribute.

◆ get_can_move_children_within_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_children_within_drive ( ) const
inline

Get the value of the 'canMoveChildrenWithinDrive' attribute.

◆ get_can_move_children_within_team_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_children_within_team_drive ( ) const
inline

Get the value of the 'canMoveChildrenWithinTeamDrive' attribute.

◆ get_can_move_item_into_team_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_item_into_team_drive ( ) const
inline

Get the value of the 'canMoveItemIntoTeamDrive' attribute.

◆ get_can_move_item_out_of_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_item_out_of_drive ( ) const
inline

Get the value of the 'canMoveItemOutOfDrive' attribute.

◆ get_can_move_item_out_of_team_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_item_out_of_team_drive ( ) const
inline

Get the value of the 'canMoveItemOutOfTeamDrive' attribute.

◆ get_can_move_item_within_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_item_within_drive ( ) const
inline

Get the value of the 'canMoveItemWithinDrive' attribute.

◆ get_can_move_item_within_team_drive()

bool google_drive_api::File::FileCapabilities::get_can_move_item_within_team_drive ( ) const
inline

Get the value of the 'canMoveItemWithinTeamDrive' attribute.

◆ get_can_move_team_drive_item()

bool google_drive_api::File::FileCapabilities::get_can_move_team_drive_item ( ) const
inline

Get the value of the 'canMoveTeamDriveItem' attribute.

◆ get_can_read_drive()

bool google_drive_api::File::FileCapabilities::get_can_read_drive ( ) const
inline

Get the value of the 'canReadDrive' attribute.

◆ get_can_read_revisions()

bool google_drive_api::File::FileCapabilities::get_can_read_revisions ( ) const
inline

Get the value of the 'canReadRevisions' attribute.

◆ get_can_read_team_drive()

bool google_drive_api::File::FileCapabilities::get_can_read_team_drive ( ) const
inline

Get the value of the 'canReadTeamDrive' attribute.

◆ get_can_remove_children()

bool google_drive_api::File::FileCapabilities::get_can_remove_children ( ) const
inline

Get the value of the 'canRemoveChildren' attribute.

◆ get_can_remove_my_drive_parent()

bool google_drive_api::File::FileCapabilities::get_can_remove_my_drive_parent ( ) const
inline

Get the value of the 'canRemoveMyDriveParent' attribute.

◆ get_can_rename()

bool google_drive_api::File::FileCapabilities::get_can_rename ( ) const
inline

Get the value of the 'canRename' attribute.

◆ get_can_share()

bool google_drive_api::File::FileCapabilities::get_can_share ( ) const
inline

Get the value of the 'canShare' attribute.

◆ get_can_trash()

bool google_drive_api::File::FileCapabilities::get_can_trash ( ) const
inline

Get the value of the 'canTrash' attribute.

◆ get_can_trash_children()

bool google_drive_api::File::FileCapabilities::get_can_trash_children ( ) const
inline

Get the value of the 'canTrashChildren' attribute.

◆ get_can_untrash()

bool google_drive_api::File::FileCapabilities::get_can_untrash ( ) const
inline

Get the value of the 'canUntrash' attribute.

◆ GetTypeName()

const StringPiece google_drive_api::File::FileCapabilities::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_drive_api::FileCapabilities

◆ has_can_add_children()

bool google_drive_api::File::FileCapabilities::has_can_add_children ( ) const
inline

Determine if the 'canAddChildren' attribute was set.

Returns
true if the 'canAddChildren' attribute was set.

◆ has_can_add_my_drive_parent()

bool google_drive_api::File::FileCapabilities::has_can_add_my_drive_parent ( ) const
inline

Determine if the 'canAddMyDriveParent' attribute was set.

Returns
true if the 'canAddMyDriveParent' attribute was set.

◆ has_can_change_copy_requires_writer_permission()

bool google_drive_api::File::FileCapabilities::has_can_change_copy_requires_writer_permission ( ) const
inline

Determine if the 'canChangeCopyRequiresWriterPermission' attribute was set.

Returns
true if the 'canChangeCopyRequiresWriterPermission' attribute was set.

◆ has_can_change_restricted_download()

bool google_drive_api::File::FileCapabilities::has_can_change_restricted_download ( ) const
inline

Determine if the 'canChangeRestrictedDownload' attribute was set.

Returns
true if the 'canChangeRestrictedDownload' attribute was set.

◆ has_can_comment()

bool google_drive_api::File::FileCapabilities::has_can_comment ( ) const
inline

Determine if the 'canComment' attribute was set.

Returns
true if the 'canComment' attribute was set.

◆ has_can_copy()

bool google_drive_api::File::FileCapabilities::has_can_copy ( ) const
inline

Determine if the 'canCopy' attribute was set.

Returns
true if the 'canCopy' attribute was set.

◆ has_can_delete()

bool google_drive_api::File::FileCapabilities::has_can_delete ( ) const
inline

Determine if the 'canDelete' attribute was set.

Returns
true if the 'canDelete' attribute was set.

◆ has_can_delete_children()

bool google_drive_api::File::FileCapabilities::has_can_delete_children ( ) const
inline

Determine if the 'canDeleteChildren' attribute was set.

Returns
true if the 'canDeleteChildren' attribute was set.

◆ has_can_download()

bool google_drive_api::File::FileCapabilities::has_can_download ( ) const
inline

Determine if the 'canDownload' attribute was set.

Returns
true if the 'canDownload' attribute was set.

◆ has_can_edit()

bool google_drive_api::File::FileCapabilities::has_can_edit ( ) const
inline

Determine if the 'canEdit' attribute was set.

Returns
true if the 'canEdit' attribute was set.

◆ has_can_list_children()

bool google_drive_api::File::FileCapabilities::has_can_list_children ( ) const
inline

Determine if the 'canListChildren' attribute was set.

Returns
true if the 'canListChildren' attribute was set.

◆ has_can_modify_content()

bool google_drive_api::File::FileCapabilities::has_can_modify_content ( ) const
inline

Determine if the 'canModifyContent' attribute was set.

Returns
true if the 'canModifyContent' attribute was set.

◆ has_can_move_children_out_of_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_children_out_of_drive ( ) const
inline

Determine if the 'canMoveChildrenOutOfDrive' attribute was set.

Returns
true if the 'canMoveChildrenOutOfDrive' attribute was set.

◆ has_can_move_children_out_of_team_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_children_out_of_team_drive ( ) const
inline

Determine if the 'canMoveChildrenOutOfTeamDrive' attribute was set.

Returns
true if the 'canMoveChildrenOutOfTeamDrive' attribute was set.

◆ has_can_move_children_within_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_children_within_drive ( ) const
inline

Determine if the 'canMoveChildrenWithinDrive' attribute was set.

Returns
true if the 'canMoveChildrenWithinDrive' attribute was set.

◆ has_can_move_children_within_team_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_children_within_team_drive ( ) const
inline

Determine if the 'canMoveChildrenWithinTeamDrive' attribute was set.

Returns
true if the 'canMoveChildrenWithinTeamDrive' attribute was set.

◆ has_can_move_item_into_team_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_item_into_team_drive ( ) const
inline

Determine if the 'canMoveItemIntoTeamDrive' attribute was set.

Returns
true if the 'canMoveItemIntoTeamDrive' attribute was set.

◆ has_can_move_item_out_of_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_item_out_of_drive ( ) const
inline

Determine if the 'canMoveItemOutOfDrive' attribute was set.

Returns
true if the 'canMoveItemOutOfDrive' attribute was set.

◆ has_can_move_item_out_of_team_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_item_out_of_team_drive ( ) const
inline

Determine if the 'canMoveItemOutOfTeamDrive' attribute was set.

Returns
true if the 'canMoveItemOutOfTeamDrive' attribute was set.

◆ has_can_move_item_within_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_item_within_drive ( ) const
inline

Determine if the 'canMoveItemWithinDrive' attribute was set.

Returns
true if the 'canMoveItemWithinDrive' attribute was set.

◆ has_can_move_item_within_team_drive()

bool google_drive_api::File::FileCapabilities::has_can_move_item_within_team_drive ( ) const
inline

Determine if the 'canMoveItemWithinTeamDrive' attribute was set.

Returns
true if the 'canMoveItemWithinTeamDrive' attribute was set.

◆ has_can_move_team_drive_item()

bool google_drive_api::File::FileCapabilities::has_can_move_team_drive_item ( ) const
inline

Determine if the 'canMoveTeamDriveItem' attribute was set.

Returns
true if the 'canMoveTeamDriveItem' attribute was set.

◆ has_can_read_drive()

bool google_drive_api::File::FileCapabilities::has_can_read_drive ( ) const
inline

Determine if the 'canReadDrive' attribute was set.

Returns
true if the 'canReadDrive' attribute was set.

◆ has_can_read_revisions()

bool google_drive_api::File::FileCapabilities::has_can_read_revisions ( ) const
inline

Determine if the 'canReadRevisions' attribute was set.

Returns
true if the 'canReadRevisions' attribute was set.

◆ has_can_read_team_drive()

bool google_drive_api::File::FileCapabilities::has_can_read_team_drive ( ) const
inline

Determine if the 'canReadTeamDrive' attribute was set.

Returns
true if the 'canReadTeamDrive' attribute was set.

◆ has_can_remove_children()

bool google_drive_api::File::FileCapabilities::has_can_remove_children ( ) const
inline

Determine if the 'canRemoveChildren' attribute was set.

Returns
true if the 'canRemoveChildren' attribute was set.

◆ has_can_remove_my_drive_parent()

bool google_drive_api::File::FileCapabilities::has_can_remove_my_drive_parent ( ) const
inline

Determine if the 'canRemoveMyDriveParent' attribute was set.

Returns
true if the 'canRemoveMyDriveParent' attribute was set.

◆ has_can_rename()

bool google_drive_api::File::FileCapabilities::has_can_rename ( ) const
inline

Determine if the 'canRename' attribute was set.

Returns
true if the 'canRename' attribute was set.

◆ has_can_share()

bool google_drive_api::File::FileCapabilities::has_can_share ( ) const
inline

Determine if the 'canShare' attribute was set.

Returns
true if the 'canShare' attribute was set.

◆ has_can_trash()

bool google_drive_api::File::FileCapabilities::has_can_trash ( ) const
inline

Determine if the 'canTrash' attribute was set.

Returns
true if the 'canTrash' attribute was set.

◆ has_can_trash_children()

bool google_drive_api::File::FileCapabilities::has_can_trash_children ( ) const
inline

Determine if the 'canTrashChildren' attribute was set.

Returns
true if the 'canTrashChildren' attribute was set.

◆ has_can_untrash()

bool google_drive_api::File::FileCapabilities::has_can_untrash ( ) const
inline

Determine if the 'canUntrash' attribute was set.

Returns
true if the 'canUntrash' attribute was set.

◆ New()

File::FileCapabilities * google_drive_api::File::FileCapabilities::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_can_add_children()

void google_drive_api::File::FileCapabilities::set_can_add_children ( bool  value)
inline

Change the 'canAddChildren' attribute.

Whether the current user can add children to this folder. This is always false when the item is not a folder.

Parameters
[in]valueThe new value.

◆ set_can_add_my_drive_parent()

void google_drive_api::File::FileCapabilities::set_can_add_my_drive_parent ( bool  value)
inline

Change the 'canAddMyDriveParent' attribute.

Whether the current user can add a parent for the item without removing an existing parent in the same request. Not populated for shared drive files.

Parameters
[in]valueThe new value.

◆ set_can_change_copy_requires_writer_permission()

void google_drive_api::File::FileCapabilities::set_can_change_copy_requires_writer_permission ( bool  value)
inline

Change the 'canChangeCopyRequiresWriterPermission' attribute.

Whether the current user can change the copyRequiresWriterPermission restriction of this file.

Parameters
[in]valueThe new value.

◆ set_can_change_restricted_download()

void google_drive_api::File::FileCapabilities::set_can_change_restricted_download ( bool  value)
inline

Change the 'canChangeRestrictedDownload' attribute.

Deprecated:

Deprecated.

Parameters
[in]valueThe new value.

◆ set_can_comment()

void google_drive_api::File::FileCapabilities::set_can_comment ( bool  value)
inline

Change the 'canComment' attribute.

Whether the current user can comment on this file.

Parameters
[in]valueThe new value.

◆ set_can_copy()

void google_drive_api::File::FileCapabilities::set_can_copy ( bool  value)
inline

Change the 'canCopy' attribute.

Whether the current user can copy this file. For an item in a shared drive, whether the current user can copy non-folder descendants of this item, or this item itself if it is not a folder.

Parameters
[in]valueThe new value.

◆ set_can_delete()

void google_drive_api::File::FileCapabilities::set_can_delete ( bool  value)
inline

Change the 'canDelete' attribute.

Whether the current user can delete this file.

Parameters
[in]valueThe new value.

◆ set_can_delete_children()

void google_drive_api::File::FileCapabilities::set_can_delete_children ( bool  value)
inline

Change the 'canDeleteChildren' attribute.

Whether the current user can delete children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_can_download()

void google_drive_api::File::FileCapabilities::set_can_download ( bool  value)
inline

Change the 'canDownload' attribute.

Whether the current user can download this file.

Parameters
[in]valueThe new value.

◆ set_can_edit()

void google_drive_api::File::FileCapabilities::set_can_edit ( bool  value)
inline

Change the 'canEdit' attribute.

Whether the current user can edit this file. Other factors may limit the type of changes a user can make to a file. For example, see canChangeCopyRequiresWriterPermission or canModifyContent.

Parameters
[in]valueThe new value.

◆ set_can_list_children()

void google_drive_api::File::FileCapabilities::set_can_list_children ( bool  value)
inline

Change the 'canListChildren' attribute.

Whether the current user can list the children of this folder. This is always false when the item is not a folder.

Parameters
[in]valueThe new value.

◆ set_can_modify_content()

void google_drive_api::File::FileCapabilities::set_can_modify_content ( bool  value)
inline

Change the 'canModifyContent' attribute.

Whether the current user can modify the content of this file.

Parameters
[in]valueThe new value.

◆ set_can_move_children_out_of_drive()

void google_drive_api::File::FileCapabilities::set_can_move_children_out_of_drive ( bool  value)
inline

Change the 'canMoveChildrenOutOfDrive' attribute.

Whether the current user can move children of this folder outside of the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_can_move_children_out_of_team_drive()

void google_drive_api::File::FileCapabilities::set_can_move_children_out_of_team_drive ( bool  value)
inline

Change the 'canMoveChildrenOutOfTeamDrive' attribute.

Deprecated:

Deprecated - use canMoveChildrenOutOfDrive instead.

Parameters
[in]valueThe new value.

◆ set_can_move_children_within_drive()

void google_drive_api::File::FileCapabilities::set_can_move_children_within_drive ( bool  value)
inline

Change the 'canMoveChildrenWithinDrive' attribute.

Whether the current user can move children of this folder within the shared drive. This is false when the item is not a folder. Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_can_move_children_within_team_drive()

void google_drive_api::File::FileCapabilities::set_can_move_children_within_team_drive ( bool  value)
inline

Change the 'canMoveChildrenWithinTeamDrive' attribute.

Deprecated:

Deprecated - use canMoveChildrenWithinDrive instead.

Parameters
[in]valueThe new value.

◆ set_can_move_item_into_team_drive()

void google_drive_api::File::FileCapabilities::set_can_move_item_into_team_drive ( bool  value)
inline

Change the 'canMoveItemIntoTeamDrive' attribute.

Deprecated:

Deprecated - use canMoveItemOutOfDrive instead.

Parameters
[in]valueThe new value.

◆ set_can_move_item_out_of_drive()

void google_drive_api::File::FileCapabilities::set_can_move_item_out_of_drive ( bool  value)
inline

Change the 'canMoveItemOutOfDrive' attribute.

Whether the current user can move this item outside of this drive by changing its parent. Note that a request to change the parent of the item may still fail depending on the new parent that is being added.

Parameters
[in]valueThe new value.

◆ set_can_move_item_out_of_team_drive()

void google_drive_api::File::FileCapabilities::set_can_move_item_out_of_team_drive ( bool  value)
inline

Change the 'canMoveItemOutOfTeamDrive' attribute.

Deprecated:

Deprecated - use canMoveItemOutOfDrive instead.

Parameters
[in]valueThe new value.

◆ set_can_move_item_within_drive()

void google_drive_api::File::FileCapabilities::set_can_move_item_within_drive ( bool  value)
inline

Change the 'canMoveItemWithinDrive' attribute.

Whether the current user can move this item within this shared drive. Note that a request to change the parent of the item may still fail depending on the new parent that is being added. Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_can_move_item_within_team_drive()

void google_drive_api::File::FileCapabilities::set_can_move_item_within_team_drive ( bool  value)
inline

Change the 'canMoveItemWithinTeamDrive' attribute.

Deprecated:

Deprecated - use canMoveItemWithinDrive instead.

Parameters
[in]valueThe new value.

◆ set_can_move_team_drive_item()

void google_drive_api::File::FileCapabilities::set_can_move_team_drive_item ( bool  value)
inline

Change the 'canMoveTeamDriveItem' attribute.

Deprecated:

Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.

Parameters
[in]valueThe new value.

◆ set_can_read_drive()

void google_drive_api::File::FileCapabilities::set_can_read_drive ( bool  value)
inline

Change the 'canReadDrive' attribute.

Whether the current user can read the shared drive to which this file belongs. Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_can_read_revisions()

void google_drive_api::File::FileCapabilities::set_can_read_revisions ( bool  value)
inline

Change the 'canReadRevisions' attribute.

Whether the current user can read the revisions resource of this file. For a shared drive item, whether revisions of non-folder descendants of this item, or this item itself if it is not a folder, can be read.

Parameters
[in]valueThe new value.

◆ set_can_read_team_drive()

void google_drive_api::File::FileCapabilities::set_can_read_team_drive ( bool  value)
inline

Change the 'canReadTeamDrive' attribute.

Deprecated:

Deprecated - use canReadDrive instead.

Parameters
[in]valueThe new value.

◆ set_can_remove_children()

void google_drive_api::File::FileCapabilities::set_can_remove_children ( bool  value)
inline

Change the 'canRemoveChildren' attribute.

Whether the current user can remove children from this folder. This is always false when the item is not a folder. For a folder in a shared drive, use canDeleteChildren or canTrashChildren instead.

Parameters
[in]valueThe new value.

◆ set_can_remove_my_drive_parent()

void google_drive_api::File::FileCapabilities::set_can_remove_my_drive_parent ( bool  value)
inline

Change the 'canRemoveMyDriveParent' attribute.

Whether the current user can remove a parent from the item without adding another parent in the same request. Not populated for shared drive files.

Parameters
[in]valueThe new value.

◆ set_can_rename()

void google_drive_api::File::FileCapabilities::set_can_rename ( bool  value)
inline

Change the 'canRename' attribute.

Whether the current user can rename this file.

Parameters
[in]valueThe new value.

◆ set_can_share()

void google_drive_api::File::FileCapabilities::set_can_share ( bool  value)
inline

Change the 'canShare' attribute.

Whether the current user can modify the sharing settings for this file.

Parameters
[in]valueThe new value.

◆ set_can_trash()

void google_drive_api::File::FileCapabilities::set_can_trash ( bool  value)
inline

Change the 'canTrash' attribute.

Whether the current user can move this file to trash.

Parameters
[in]valueThe new value.

◆ set_can_trash_children()

void google_drive_api::File::FileCapabilities::set_can_trash_children ( bool  value)
inline

Change the 'canTrashChildren' attribute.

Whether the current user can trash children of this folder. This is false when the item is not a folder. Only populated for items in shared drives.

Parameters
[in]valueThe new value.

◆ set_can_untrash()

void google_drive_api::File::FileCapabilities::set_can_untrash ( bool  value)
inline

Change the 'canUntrash' attribute.

Whether the current user can restore this file from trash.

Parameters
[in]valueThe new value.

The documentation for this class was generated from the following files: