drive  v2
Public Member Functions | Static Public Member Functions | List of all members
google_drive_api::TeamDrive::TeamDriveCapabilities Class Reference

#include <team_drive.h>

Inheritance diagram for google_drive_api::TeamDrive::TeamDriveCapabilities:

Public Member Functions

 TeamDriveCapabilities (const Json::Value &storage)
 
 TeamDriveCapabilities (Json::Value *storage)
 
virtual ~TeamDriveCapabilities ()
 
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_team_drive_background () const
 
void clear_can_change_team_drive_background ()
 
bool get_can_change_team_drive_background () const
 
void set_can_change_team_drive_background (bool value)
 
bool has_can_change_team_members_only_restriction () const
 
void clear_can_change_team_members_only_restriction ()
 
bool get_can_change_team_members_only_restriction () const
 
void set_can_change_team_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_team_drive () const
 
void clear_can_delete_team_drive ()
 
bool get_can_delete_team_drive () const
 
void set_can_delete_team_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_remove_children () const
 
void clear_can_remove_children ()
 
bool get_can_remove_children () const
 
void set_can_remove_children (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_team_drive () const
 
void clear_can_rename_team_drive ()
 
bool get_can_rename_team_drive () const
 
void set_can_rename_team_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 TeamDriveCapabilitiesNew ()
 

Detailed Description

Capabilities the current user has on this Team Drive.

Constructor & Destructor Documentation

◆ TeamDriveCapabilities() [1/2]

google_drive_api::TeamDrive::TeamDriveCapabilities::TeamDriveCapabilities ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

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

◆ TeamDriveCapabilities() [2/2]

google_drive_api::TeamDrive::TeamDriveCapabilities::TeamDriveCapabilities ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

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

◆ ~TeamDriveCapabilities()

google_drive_api::TeamDrive::TeamDriveCapabilities::~TeamDriveCapabilities ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_can_add_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_add_children ( )
inline

Clears the 'canAddChildren' attribute.

◆ clear_can_change_copy_requires_writer_permission_restriction()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_change_copy_requires_writer_permission_restriction ( )
inline

Clears the 'canChangeCopyRequiresWriterPermissionRestriction' attribute.

◆ clear_can_change_domain_users_only_restriction()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_change_domain_users_only_restriction ( )
inline

Clears the 'canChangeDomainUsersOnlyRestriction' attribute.

◆ clear_can_change_team_drive_background()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_change_team_drive_background ( )
inline

Clears the 'canChangeTeamDriveBackground' attribute.

◆ clear_can_change_team_members_only_restriction()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_change_team_members_only_restriction ( )
inline

Clears the 'canChangeTeamMembersOnlyRestriction' attribute.

◆ clear_can_comment()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_comment ( )
inline

Clears the 'canComment' attribute.

◆ clear_can_copy()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_copy ( )
inline

Clears the 'canCopy' attribute.

◆ clear_can_delete_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_delete_children ( )
inline

Clears the 'canDeleteChildren' attribute.

◆ clear_can_delete_team_drive()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_delete_team_drive ( )
inline

Clears the 'canDeleteTeamDrive' attribute.

◆ clear_can_download()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_download ( )
inline

Clears the 'canDownload' attribute.

◆ clear_can_edit()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_edit ( )
inline

Clears the 'canEdit' attribute.

◆ clear_can_list_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_list_children ( )
inline

Clears the 'canListChildren' attribute.

◆ clear_can_manage_members()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_manage_members ( )
inline

Clears the 'canManageMembers' attribute.

◆ clear_can_read_revisions()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_read_revisions ( )
inline

Clears the 'canReadRevisions' attribute.

◆ clear_can_remove_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_remove_children ( )
inline

Clears the 'canRemoveChildren' attribute.

◆ clear_can_rename()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_rename ( )
inline

Clears the 'canRename' attribute.

◆ clear_can_rename_team_drive()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_rename_team_drive ( )
inline

Clears the 'canRenameTeamDrive' attribute.

◆ clear_can_share()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_share ( )
inline

Clears the 'canShare' attribute.

◆ clear_can_trash_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::clear_can_trash_children ( )
inline

Clears the 'canTrashChildren' attribute.

◆ get_can_add_children()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::get_can_change_domain_users_only_restriction ( ) const
inline

Get the value of the 'canChangeDomainUsersOnlyRestriction' attribute.

◆ get_can_change_team_drive_background()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_change_team_drive_background ( ) const
inline

Get the value of the 'canChangeTeamDriveBackground' attribute.

◆ get_can_change_team_members_only_restriction()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_change_team_members_only_restriction ( ) const
inline

Get the value of the 'canChangeTeamMembersOnlyRestriction' attribute.

◆ get_can_comment()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_comment ( ) const
inline

Get the value of the 'canComment' attribute.

◆ get_can_copy()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_copy ( ) const
inline

Get the value of the 'canCopy' attribute.

◆ get_can_delete_children()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_delete_children ( ) const
inline

Get the value of the 'canDeleteChildren' attribute.

◆ get_can_delete_team_drive()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_delete_team_drive ( ) const
inline

Get the value of the 'canDeleteTeamDrive' attribute.

◆ get_can_download()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_download ( ) const
inline

Get the value of the 'canDownload' attribute.

◆ get_can_edit()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_edit ( ) const
inline

Get the value of the 'canEdit' attribute.

◆ get_can_list_children()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_list_children ( ) const
inline

Get the value of the 'canListChildren' attribute.

◆ get_can_manage_members()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_manage_members ( ) const
inline

Get the value of the 'canManageMembers' attribute.

◆ get_can_read_revisions()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_read_revisions ( ) const
inline

Get the value of the 'canReadRevisions' attribute.

◆ get_can_remove_children()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_remove_children ( ) const
inline

Get the value of the 'canRemoveChildren' attribute.

◆ get_can_rename()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_rename ( ) const
inline

Get the value of the 'canRename' attribute.

◆ get_can_rename_team_drive()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_rename_team_drive ( ) const
inline

Get the value of the 'canRenameTeamDrive' attribute.

◆ get_can_share()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_share ( ) const
inline

Get the value of the 'canShare' attribute.

◆ get_can_trash_children()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::get_can_trash_children ( ) const
inline

Get the value of the 'canTrashChildren' attribute.

◆ GetTypeName()

const StringPiece google_drive_api::TeamDrive::TeamDriveCapabilities::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_drive_api::TeamDriveCapabilities

◆ has_can_add_children()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::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_team_drive_background()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::has_can_change_team_drive_background ( ) const
inline

Determine if the 'canChangeTeamDriveBackground' attribute was set.

Returns
true if the 'canChangeTeamDriveBackground' attribute was set.

◆ has_can_change_team_members_only_restriction()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::has_can_change_team_members_only_restriction ( ) const
inline

Determine if the 'canChangeTeamMembersOnlyRestriction' attribute was set.

Returns
true if the 'canChangeTeamMembersOnlyRestriction' attribute was set.

◆ has_can_comment()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::has_can_delete_children ( ) const
inline

Determine if the 'canDeleteChildren' attribute was set.

Returns
true if the 'canDeleteChildren' attribute was set.

◆ has_can_delete_team_drive()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::has_can_delete_team_drive ( ) const
inline

Determine if the 'canDeleteTeamDrive' attribute was set.

Returns
true if the 'canDeleteTeamDrive' attribute was set.

◆ has_can_download()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::has_can_read_revisions ( ) const
inline

Determine if the 'canReadRevisions' attribute was set.

Returns
true if the 'canReadRevisions' attribute was set.

◆ has_can_remove_children()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::has_can_remove_children ( ) const
inline

Determine if the 'canRemoveChildren' attribute was set.

Returns
true if the 'canRemoveChildren' attribute was set.

◆ has_can_rename()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::has_can_rename ( ) const
inline

Determine if the 'canRename' attribute was set.

Returns
true if the 'canRename' attribute was set.

◆ has_can_rename_team_drive()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::has_can_rename_team_drive ( ) const
inline

Determine if the 'canRenameTeamDrive' attribute was set.

Returns
true if the 'canRenameTeamDrive' attribute was set.

◆ has_can_share()

bool google_drive_api::TeamDrive::TeamDriveCapabilities::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::TeamDrive::TeamDriveCapabilities::has_can_trash_children ( ) const
inline

Determine if the 'canTrashChildren' attribute was set.

Returns
true if the 'canTrashChildren' attribute was set.

◆ New()

TeamDrive::TeamDriveCapabilities * google_drive_api::TeamDrive::TeamDriveCapabilities::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_can_add_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_add_children ( bool  value)
inline

Change the 'canAddChildren' attribute.

Whether the current user can add children to folders in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_change_copy_requires_writer_permission_restriction()

void google_drive_api::TeamDrive::TeamDriveCapabilities::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 Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_change_domain_users_only_restriction()

void google_drive_api::TeamDrive::TeamDriveCapabilities::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 Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_change_team_drive_background()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_change_team_drive_background ( bool  value)
inline

Change the 'canChangeTeamDriveBackground' attribute.

Whether the current user can change the background of this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_change_team_members_only_restriction()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_change_team_members_only_restriction ( bool  value)
inline

Change the 'canChangeTeamMembersOnlyRestriction' attribute.

Whether the current user can change the teamMembersOnly restriction of this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_comment()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_comment ( bool  value)
inline

Change the 'canComment' attribute.

Whether the current user can comment on files in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_copy()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_copy ( bool  value)
inline

Change the 'canCopy' attribute.

Whether the current user can copy files in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_delete_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_delete_children ( bool  value)
inline

Change the 'canDeleteChildren' attribute.

Whether the current user can delete children from folders in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_delete_team_drive()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_delete_team_drive ( bool  value)
inline

Change the 'canDeleteTeamDrive' attribute.

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.

Parameters
[in]valueThe new value.

◆ set_can_download()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_download ( bool  value)
inline

Change the 'canDownload' attribute.

Whether the current user can download files in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_edit()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_edit ( bool  value)
inline

Change the 'canEdit' attribute.

Whether the current user can edit files in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_list_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_list_children ( bool  value)
inline

Change the 'canListChildren' attribute.

Whether the current user can list the children of folders in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_manage_members()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_manage_members ( bool  value)
inline

Change the 'canManageMembers' attribute.

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

Parameters
[in]valueThe new value.

◆ set_can_read_revisions()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_read_revisions ( bool  value)
inline

Change the 'canReadRevisions' attribute.

Whether the current user can read the revisions resource of files in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_remove_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_remove_children ( bool  value)
inline

Change the 'canRemoveChildren' attribute.

Deprecated:

Deprecated - use canDeleteChildren or canTrashChildren instead.

Parameters
[in]valueThe new value.

◆ set_can_rename()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_rename ( bool  value)
inline

Change the 'canRename' attribute.

Whether the current user can rename files or folders in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_rename_team_drive()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_rename_team_drive ( bool  value)
inline

Change the 'canRenameTeamDrive' attribute.

Whether the current user can rename this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_share()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_share ( bool  value)
inline

Change the 'canShare' attribute.

Whether the current user can share files or folders in this Team Drive.

Parameters
[in]valueThe new value.

◆ set_can_trash_children()

void google_drive_api::TeamDrive::TeamDriveCapabilities::set_can_trash_children ( bool  value)
inline

Change the 'canTrashChildren' attribute.

Whether the current user can trash children from folders in this Team Drive.

Parameters
[in]valueThe new value.

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