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

#include <team_drive.h>

Inheritance diagram for google_drive_api::TeamDrive::TeamDriveRestrictions:

Public Member Functions

 TeamDriveRestrictions (const Json::Value &storage)
 
 TeamDriveRestrictions (Json::Value *storage)
 
virtual ~TeamDriveRestrictions ()
 
const StringPiece GetTypeName () const
 
bool has_admin_managed_restrictions () const
 
void clear_admin_managed_restrictions ()
 
bool get_admin_managed_restrictions () const
 
void set_admin_managed_restrictions (bool value)
 
bool has_copy_requires_writer_permission () const
 
void clear_copy_requires_writer_permission ()
 
bool get_copy_requires_writer_permission () const
 
void set_copy_requires_writer_permission (bool value)
 
bool has_domain_users_only () const
 
void clear_domain_users_only ()
 
bool get_domain_users_only () const
 
void set_domain_users_only (bool value)
 
bool has_team_members_only () const
 
void clear_team_members_only ()
 
bool get_team_members_only () const
 
void set_team_members_only (bool value)
 

Static Public Member Functions

static TeamDriveRestrictionsNew ()
 

Detailed Description

A set of restrictions that apply to this Team Drive or items inside this Team Drive.

Constructor & Destructor Documentation

◆ TeamDriveRestrictions() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ TeamDriveRestrictions() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~TeamDriveRestrictions()

google_drive_api::TeamDrive::TeamDriveRestrictions::~TeamDriveRestrictions ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_admin_managed_restrictions()

void google_drive_api::TeamDrive::TeamDriveRestrictions::clear_admin_managed_restrictions ( )
inline

Clears the 'adminManagedRestrictions' attribute.

◆ clear_copy_requires_writer_permission()

void google_drive_api::TeamDrive::TeamDriveRestrictions::clear_copy_requires_writer_permission ( )
inline

Clears the 'copyRequiresWriterPermission' attribute.

◆ clear_domain_users_only()

void google_drive_api::TeamDrive::TeamDriveRestrictions::clear_domain_users_only ( )
inline

Clears the 'domainUsersOnly' attribute.

◆ clear_team_members_only()

void google_drive_api::TeamDrive::TeamDriveRestrictions::clear_team_members_only ( )
inline

Clears the 'teamMembersOnly' attribute.

◆ get_admin_managed_restrictions()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::get_admin_managed_restrictions ( ) const
inline

Get the value of the 'adminManagedRestrictions' attribute.

◆ get_copy_requires_writer_permission()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::get_copy_requires_writer_permission ( ) const
inline

Get the value of the 'copyRequiresWriterPermission' attribute.

◆ get_domain_users_only()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::get_domain_users_only ( ) const
inline

Get the value of the 'domainUsersOnly' attribute.

◆ get_team_members_only()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::get_team_members_only ( ) const
inline

Get the value of the 'teamMembersOnly' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_drive_api::TeamDriveRestrictions

◆ has_admin_managed_restrictions()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::has_admin_managed_restrictions ( ) const
inline

Determine if the 'adminManagedRestrictions' attribute was set.

Returns
true if the 'adminManagedRestrictions' attribute was set.

◆ has_copy_requires_writer_permission()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::has_copy_requires_writer_permission ( ) const
inline

Determine if the 'copyRequiresWriterPermission' attribute was set.

Returns
true if the 'copyRequiresWriterPermission' attribute was set.

◆ has_domain_users_only()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::has_domain_users_only ( ) const
inline

Determine if the 'domainUsersOnly' attribute was set.

Returns
true if the 'domainUsersOnly' attribute was set.

◆ has_team_members_only()

bool google_drive_api::TeamDrive::TeamDriveRestrictions::has_team_members_only ( ) const
inline

Determine if the 'teamMembersOnly' attribute was set.

Returns
true if the 'teamMembersOnly' attribute was set.

◆ New()

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

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_admin_managed_restrictions()

void google_drive_api::TeamDrive::TeamDriveRestrictions::set_admin_managed_restrictions ( bool  value)
inline

Change the 'adminManagedRestrictions' attribute.

Whether administrative privileges on this Team Drive are required to modify restrictions.

Parameters
[in]valueThe new value.

◆ set_copy_requires_writer_permission()

void google_drive_api::TeamDrive::TeamDriveRestrictions::set_copy_requires_writer_permission ( bool  value)
inline

Change the 'copyRequiresWriterPermission' attribute.

Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters. When this restriction is set to true, it will override the similarly named field to true for any file inside this Team Drive.

Parameters
[in]valueThe new value.

◆ set_domain_users_only()

void google_drive_api::TeamDrive::TeamDriveRestrictions::set_domain_users_only ( bool  value)
inline

Change the 'domainUsersOnly' attribute.

Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs. This restriction may be overridden by other sharing policies controlled outside of this Team Drive.

Parameters
[in]valueThe new value.

◆ set_team_members_only()

void google_drive_api::TeamDrive::TeamDriveRestrictions::set_team_members_only ( bool  value)
inline

Change the 'teamMembersOnly' attribute.

Whether access to items inside this Team Drive is restricted to members of this Team Drive.

Parameters
[in]valueThe new value.

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