drive  v2
Public Member Functions | Static Public Member Functions | List of all members
google_drive_api::Drive::DriveCapabilities Class Reference

#include <drive.h>

Inheritance diagram for google_drive_api::Drive::DriveCapabilities:

Public Member Functions

 DriveCapabilities (const Json::Value &storage)
 
 DriveCapabilities (Json::Value *storage)
 
virtual ~DriveCapabilities ()
 
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_change_copy_requires_writer_permission_restriction () const
 
void clear_can_change_copy_requires_writer_permission_restriction ()
 
bool get_can_change_copy_requires_writer_permission_restriction () const
 
void set_can_change_copy_requires_writer_permission_restriction (bool value)
 
bool has_can_change_domain_users_only_restriction () const
 
void clear_can_change_domain_users_only_restriction ()
 
bool get_can_change_domain_users_only_restriction () const
 
void set_can_change_domain_users_only_restriction (bool value)
 
bool has_can_change_drive_background () const
 
void clear_can_change_drive_background ()
 
bool get_can_change_drive_background () const
 
void set_can_change_drive_background (bool value)
 
bool has_can_change_drive_members_only_restriction () const
 
void clear_can_change_drive_members_only_restriction ()
 
bool get_can_change_drive_members_only_restriction () const
 
void set_can_change_drive_members_only_restriction (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_children () const
 
void clear_can_delete_children ()
 
bool get_can_delete_children () const
 
void set_can_delete_children (bool value)
 
bool has_can_delete_drive () const
 
void clear_can_delete_drive ()
 
bool get_can_delete_drive () const
 
void set_can_delete_drive (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_manage_members () const
 
void clear_can_manage_members ()
 
bool get_can_manage_members () const
 
void set_can_manage_members (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_rename () const
 
void clear_can_rename ()
 
bool get_can_rename () const
 
void set_can_rename (bool value)
 
bool has_can_rename_drive () const
 
void clear_can_rename_drive ()
 
bool get_can_rename_drive () const
 
void set_can_rename_drive (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_children () const
 
void clear_can_trash_children ()
 
bool get_can_trash_children () const
 
void set_can_trash_children (bool value)
 

Static Public Member Functions

static DriveCapabilitiesNew ()
 

Detailed Description

Capabilities the current user has on this shared drive.

Constructor & Destructor Documentation

◆ DriveCapabilities() [1/2]

google_drive_api::Drive::DriveCapabilities::DriveCapabilities ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ DriveCapabilities() [2/2]

google_drive_api::Drive::DriveCapabilities::DriveCapabilities ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~DriveCapabilities()

google_drive_api::Drive::DriveCapabilities::~DriveCapabilities ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_can_add_children()

void google_drive_api::Drive::DriveCapabilities::clear_can_add_children ( )
inline

Clears the 'canAddChildren' attribute.

◆ clear_can_change_copy_requires_writer_permission_restriction()

void google_drive_api::Drive::DriveCapabilities::clear_can_change_copy_requires_writer_permission_restriction ( )
inline

Clears the 'canChangeCopyRequiresWriterPermissionRestriction' attribute.

◆ clear_can_change_domain_users_only_restriction()

void google_drive_api::Drive::DriveCapabilities::clear_can_change_domain_users_only_restriction ( )
inline

Clears the 'canChangeDomainUsersOnlyRestriction' attribute.

◆ clear_can_change_drive_background()

void google_drive_api::Drive::DriveCapabilities::clear_can_change_drive_background ( )
inline

Clears the 'canChangeDriveBackground' attribute.

◆ clear_can_change_drive_members_only_restriction()

void google_drive_api::Drive::DriveCapabilities::clear_can_change_drive_members_only_restriction ( )
inline

Clears the 'canChangeDriveMembersOnlyRestriction' attribute.

◆ clear_can_comment()

void google_drive_api::Drive::DriveCapabilities::clear_can_comment ( )
inline

Clears the 'canComment' attribute.

◆ clear_can_copy()

void google_drive_api::Drive::DriveCapabilities::clear_can_copy ( )
inline

Clears the 'canCopy' attribute.

◆ clear_can_delete_children()

void google_drive_api::Drive::DriveCapabilities::clear_can_delete_children ( )
inline

Clears the 'canDeleteChildren' attribute.

◆ clear_can_delete_drive()

void google_drive_api::Drive::DriveCapabilities::clear_can_delete_drive ( )
inline

Clears the 'canDeleteDrive' attribute.

◆ clear_can_download()

void google_drive_api::Drive::DriveCapabilities::clear_can_download ( )
inline

Clears the 'canDownload' attribute.

◆ clear_can_edit()

void google_drive_api::Drive::DriveCapabilities::clear_can_edit ( )
inline

Clears the 'canEdit' attribute.

◆ clear_can_list_children()

void google_drive_api::Drive::DriveCapabilities::clear_can_list_children ( )
inline

Clears the 'canListChildren' attribute.

◆ clear_can_manage_members()

void google_drive_api::Drive::DriveCapabilities::clear_can_manage_members ( )
inline

Clears the 'canManageMembers' attribute.

◆ clear_can_read_revisions()

void google_drive_api::Drive::DriveCapabilities::clear_can_read_revisions ( )
inline

Clears the 'canReadRevisions' attribute.

◆ clear_can_rename()

void google_drive_api::Drive::DriveCapabilities::clear_can_rename ( )
inline

Clears the 'canRename' attribute.

◆ clear_can_rename_drive()

void google_drive_api::Drive::DriveCapabilities::clear_can_rename_drive ( )
inline

Clears the 'canRenameDrive' attribute.

◆ clear_can_share()

void google_drive_api::Drive::DriveCapabilities::clear_can_share ( )
inline

Clears the 'canShare' attribute.

◆ clear_can_trash_children()

void google_drive_api::Drive::DriveCapabilities::clear_can_trash_children ( )
inline

Clears the 'canTrashChildren' attribute.

◆ get_can_add_children()

bool google_drive_api::Drive::DriveCapabilities::get_can_add_children ( ) const
inline

Get the value of the 'canAddChildren' attribute.

◆ get_can_change_copy_requires_writer_permission_restriction()

bool google_drive_api::Drive::DriveCapabilities::get_can_change_copy_requires_writer_permission_restriction ( ) const
inline

Get the value of the 'canChangeCopyRequiresWriterPermissionRestriction' attribute.

◆ get_can_change_domain_users_only_restriction()

bool google_drive_api::Drive::DriveCapabilities::get_can_change_domain_users_only_restriction ( ) const
inline

Get the value of the 'canChangeDomainUsersOnlyRestriction' attribute.

◆ get_can_change_drive_background()

bool google_drive_api::Drive::DriveCapabilities::get_can_change_drive_background ( ) const
inline

Get the value of the 'canChangeDriveBackground' attribute.

◆ get_can_change_drive_members_only_restriction()

bool google_drive_api::Drive::DriveCapabilities::get_can_change_drive_members_only_restriction ( ) const
inline

Get the value of the 'canChangeDriveMembersOnlyRestriction' attribute.

◆ get_can_comment()

bool google_drive_api::Drive::DriveCapabilities::get_can_comment ( ) const
inline

Get the value of the 'canComment' attribute.

◆ get_can_copy()

bool google_drive_api::Drive::DriveCapabilities::get_can_copy ( ) const
inline

Get the value of the 'canCopy' attribute.

◆ get_can_delete_children()

bool google_drive_api::Drive::DriveCapabilities::get_can_delete_children ( ) const
inline

Get the value of the 'canDeleteChildren' attribute.

◆ get_can_delete_drive()

bool google_drive_api::Drive::DriveCapabilities::get_can_delete_drive ( ) const
inline

Get the value of the 'canDeleteDrive' attribute.

◆ get_can_download()

bool google_drive_api::Drive::DriveCapabilities::get_can_download ( ) const
inline

Get the value of the 'canDownload' attribute.

◆ get_can_edit()

bool google_drive_api::Drive::DriveCapabilities::get_can_edit ( ) const
inline

Get the value of the 'canEdit' attribute.

◆ get_can_list_children()

bool google_drive_api::Drive::DriveCapabilities::get_can_list_children ( ) const
inline

Get the value of the 'canListChildren' attribute.

◆ get_can_manage_members()

bool google_drive_api::Drive::DriveCapabilities::get_can_manage_members ( ) const
inline

Get the value of the 'canManageMembers' attribute.

◆ get_can_read_revisions()

bool google_drive_api::Drive::DriveCapabilities::get_can_read_revisions ( ) const
inline

Get the value of the 'canReadRevisions' attribute.

◆ get_can_rename()

bool google_drive_api::Drive::DriveCapabilities::get_can_rename ( ) const
inline

Get the value of the 'canRename' attribute.

◆ get_can_rename_drive()

bool google_drive_api::Drive::DriveCapabilities::get_can_rename_drive ( ) const
inline

Get the value of the 'canRenameDrive' attribute.

◆ get_can_share()

bool google_drive_api::Drive::DriveCapabilities::get_can_share ( ) const
inline

Get the value of the 'canShare' attribute.

◆ get_can_trash_children()

bool google_drive_api::Drive::DriveCapabilities::get_can_trash_children ( ) const
inline

Get the value of the 'canTrashChildren' attribute.

◆ GetTypeName()

const StringPiece google_drive_api::Drive::DriveCapabilities::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_drive_api::DriveCapabilities

◆ has_can_add_children()

bool google_drive_api::Drive::DriveCapabilities::has_can_add_children ( ) const
inline

Determine if the 'canAddChildren' attribute was set.

Returns
true if the 'canAddChildren' attribute was set.

◆ has_can_change_copy_requires_writer_permission_restriction()

bool google_drive_api::Drive::DriveCapabilities::has_can_change_copy_requires_writer_permission_restriction ( ) const
inline

Determine if the 'canChangeCopyRequiresWriterPermissionRestriction' attribute was set.

Returns
true if the 'canChangeCopyRequiresWriterPermissionRestriction' attribute was set.

◆ has_can_change_domain_users_only_restriction()

bool google_drive_api::Drive::DriveCapabilities::has_can_change_domain_users_only_restriction ( ) const
inline

Determine if the 'canChangeDomainUsersOnlyRestriction' attribute was set.

Returns
true if the 'canChangeDomainUsersOnlyRestriction' attribute was set.

◆ has_can_change_drive_background()

bool google_drive_api::Drive::DriveCapabilities::has_can_change_drive_background ( ) const
inline

Determine if the 'canChangeDriveBackground' attribute was set.

Returns
true if the 'canChangeDriveBackground' attribute was set.

◆ has_can_change_drive_members_only_restriction()

bool google_drive_api::Drive::DriveCapabilities::has_can_change_drive_members_only_restriction ( ) const
inline

Determine if the 'canChangeDriveMembersOnlyRestriction' attribute was set.

Returns
true if the 'canChangeDriveMembersOnlyRestriction' attribute was set.

◆ has_can_comment()

bool google_drive_api::Drive::DriveCapabilities::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::Drive::DriveCapabilities::has_can_copy ( ) const
inline

Determine if the 'canCopy' attribute was set.

Returns
true if the 'canCopy' attribute was set.

◆ has_can_delete_children()

bool google_drive_api::Drive::DriveCapabilities::has_can_delete_children ( ) const
inline

Determine if the 'canDeleteChildren' attribute was set.

Returns
true if the 'canDeleteChildren' attribute was set.

◆ has_can_delete_drive()

bool google_drive_api::Drive::DriveCapabilities::has_can_delete_drive ( ) const
inline

Determine if the 'canDeleteDrive' attribute was set.

Returns
true if the 'canDeleteDrive' attribute was set.

◆ has_can_download()

bool google_drive_api::Drive::DriveCapabilities::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::Drive::DriveCapabilities::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::Drive::DriveCapabilities::has_can_list_children ( ) const
inline

Determine if the 'canListChildren' attribute was set.

Returns
true if the 'canListChildren' attribute was set.

◆ has_can_manage_members()

bool google_drive_api::Drive::DriveCapabilities::has_can_manage_members ( ) const
inline

Determine if the 'canManageMembers' attribute was set.

Returns
true if the 'canManageMembers' attribute was set.

◆ has_can_read_revisions()

bool google_drive_api::Drive::DriveCapabilities::has_can_read_revisions ( ) const
inline

Determine if the 'canReadRevisions' attribute was set.

Returns
true if the 'canReadRevisions' attribute was set.

◆ has_can_rename()

bool google_drive_api::Drive::DriveCapabilities::has_can_rename ( ) const
inline

Determine if the 'canRename' attribute was set.

Returns
true if the 'canRename' attribute was set.

◆ has_can_rename_drive()

bool google_drive_api::Drive::DriveCapabilities::has_can_rename_drive ( ) const
inline

Determine if the 'canRenameDrive' attribute was set.

Returns
true if the 'canRenameDrive' attribute was set.

◆ has_can_share()

bool google_drive_api::Drive::DriveCapabilities::has_can_share ( ) const
inline

Determine if the 'canShare' attribute was set.

Returns
true if the 'canShare' attribute was set.

◆ has_can_trash_children()

bool google_drive_api::Drive::DriveCapabilities::has_can_trash_children ( ) const
inline

Determine if the 'canTrashChildren' attribute was set.

Returns
true if the 'canTrashChildren' attribute was set.

◆ New()

Drive::DriveCapabilities * google_drive_api::Drive::DriveCapabilities::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_can_add_children()

void google_drive_api::Drive::DriveCapabilities::set_can_add_children ( bool  value)
inline

Change the 'canAddChildren' attribute.

Whether the current user can add children to folders in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_change_copy_requires_writer_permission_restriction()

void google_drive_api::Drive::DriveCapabilities::set_can_change_copy_requires_writer_permission_restriction ( bool  value)
inline

Change the 'canChangeCopyRequiresWriterPermissionRestriction' attribute.

Whether the current user can change the copyRequiresWriterPermission restriction of this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_change_domain_users_only_restriction()

void google_drive_api::Drive::DriveCapabilities::set_can_change_domain_users_only_restriction ( bool  value)
inline

Change the 'canChangeDomainUsersOnlyRestriction' attribute.

Whether the current user can change the domainUsersOnly restriction of this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_change_drive_background()

void google_drive_api::Drive::DriveCapabilities::set_can_change_drive_background ( bool  value)
inline

Change the 'canChangeDriveBackground' attribute.

Whether the current user can change the background of this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_change_drive_members_only_restriction()

void google_drive_api::Drive::DriveCapabilities::set_can_change_drive_members_only_restriction ( bool  value)
inline

Change the 'canChangeDriveMembersOnlyRestriction' attribute.

Whether the current user can change the driveMembersOnly restriction of this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_comment()

void google_drive_api::Drive::DriveCapabilities::set_can_comment ( bool  value)
inline

Change the 'canComment' attribute.

Whether the current user can comment on files in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_copy()

void google_drive_api::Drive::DriveCapabilities::set_can_copy ( bool  value)
inline

Change the 'canCopy' attribute.

Whether the current user can copy files in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_delete_children()

void google_drive_api::Drive::DriveCapabilities::set_can_delete_children ( bool  value)
inline

Change the 'canDeleteChildren' attribute.

Whether the current user can delete children from folders in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_delete_drive()

void google_drive_api::Drive::DriveCapabilities::set_can_delete_drive ( bool  value)
inline

Change the 'canDeleteDrive' attribute.

Whether the current user can delete this shared drive. Attempting to delete the shared drive may still fail if there are untrashed items inside the shared drive.

Parameters
[in]valueThe new value.

◆ set_can_download()

void google_drive_api::Drive::DriveCapabilities::set_can_download ( bool  value)
inline

Change the 'canDownload' attribute.

Whether the current user can download files in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_edit()

void google_drive_api::Drive::DriveCapabilities::set_can_edit ( bool  value)
inline

Change the 'canEdit' attribute.

Whether the current user can edit files in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_list_children()

void google_drive_api::Drive::DriveCapabilities::set_can_list_children ( bool  value)
inline

Change the 'canListChildren' attribute.

Whether the current user can list the children of folders in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_manage_members()

void google_drive_api::Drive::DriveCapabilities::set_can_manage_members ( bool  value)
inline

Change the 'canManageMembers' attribute.

Whether the current user can add members to this shared drive or remove them or change their role.

Parameters
[in]valueThe new value.

◆ set_can_read_revisions()

void google_drive_api::Drive::DriveCapabilities::set_can_read_revisions ( bool  value)
inline

Change the 'canReadRevisions' attribute.

Whether the current user can read the revisions resource of files in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_rename()

void google_drive_api::Drive::DriveCapabilities::set_can_rename ( bool  value)
inline

Change the 'canRename' attribute.

Whether the current user can rename files or folders in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_rename_drive()

void google_drive_api::Drive::DriveCapabilities::set_can_rename_drive ( bool  value)
inline

Change the 'canRenameDrive' attribute.

Whether the current user can rename this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_share()

void google_drive_api::Drive::DriveCapabilities::set_can_share ( bool  value)
inline

Change the 'canShare' attribute.

Whether the current user can share files or folders in this shared drive.

Parameters
[in]valueThe new value.

◆ set_can_trash_children()

void google_drive_api::Drive::DriveCapabilities::set_can_trash_children ( bool  value)
inline

Change the 'canTrashChildren' attribute.

Whether the current user can trash children from folders in this shared drive.

Parameters
[in]valueThe new value.

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