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

#include <drive.h>

Inheritance diagram for google_drive_api::Drive::DriveRestrictions:

Public Member Functions

 DriveRestrictions (const Json::Value &storage)
 
 DriveRestrictions (Json::Value *storage)
 
virtual ~DriveRestrictions ()
 
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_drive_members_only () const
 
void clear_drive_members_only ()
 
bool get_drive_members_only () const
 
void set_drive_members_only (bool value)
 

Static Public Member Functions

static DriveRestrictionsNew ()
 

Detailed Description

A set of restrictions that apply to this shared drive or items inside this shared drive.

Constructor & Destructor Documentation

◆ DriveRestrictions() [1/2]

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

Standard constructor for an immutable data object instance.

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

◆ DriveRestrictions() [2/2]

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

Standard constructor for a mutable data object instance.

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

◆ ~DriveRestrictions()

google_drive_api::Drive::DriveRestrictions::~DriveRestrictions ( )
virtual

Standard destructor.

Member Function Documentation

◆ clear_admin_managed_restrictions()

void google_drive_api::Drive::DriveRestrictions::clear_admin_managed_restrictions ( )
inline

Clears the 'adminManagedRestrictions' attribute.

◆ clear_copy_requires_writer_permission()

void google_drive_api::Drive::DriveRestrictions::clear_copy_requires_writer_permission ( )
inline

Clears the 'copyRequiresWriterPermission' attribute.

◆ clear_domain_users_only()

void google_drive_api::Drive::DriveRestrictions::clear_domain_users_only ( )
inline

Clears the 'domainUsersOnly' attribute.

◆ clear_drive_members_only()

void google_drive_api::Drive::DriveRestrictions::clear_drive_members_only ( )
inline

Clears the 'driveMembersOnly' attribute.

◆ get_admin_managed_restrictions()

bool google_drive_api::Drive::DriveRestrictions::get_admin_managed_restrictions ( ) const
inline

Get the value of the 'adminManagedRestrictions' attribute.

◆ get_copy_requires_writer_permission()

bool google_drive_api::Drive::DriveRestrictions::get_copy_requires_writer_permission ( ) const
inline

Get the value of the 'copyRequiresWriterPermission' attribute.

◆ get_domain_users_only()

bool google_drive_api::Drive::DriveRestrictions::get_domain_users_only ( ) const
inline

Get the value of the 'domainUsersOnly' attribute.

◆ get_drive_members_only()

bool google_drive_api::Drive::DriveRestrictions::get_drive_members_only ( ) const
inline

Get the value of the 'driveMembersOnly' attribute.

◆ GetTypeName()

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

Returns a string denoting the type of this data object.

Returns
google_drive_api::DriveRestrictions

◆ has_admin_managed_restrictions()

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

Determine if the 'domainUsersOnly' attribute was set.

Returns
true if the 'domainUsersOnly' attribute was set.

◆ has_drive_members_only()

bool google_drive_api::Drive::DriveRestrictions::has_drive_members_only ( ) const
inline

Determine if the 'driveMembersOnly' attribute was set.

Returns
true if the 'driveMembersOnly' attribute was set.

◆ New()

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

Creates a new default instance.

Returns
Ownership is passed back to the caller.

◆ set_admin_managed_restrictions()

void google_drive_api::Drive::DriveRestrictions::set_admin_managed_restrictions ( bool  value)
inline

Change the 'adminManagedRestrictions' attribute.

Whether administrative privileges on this shared drive are required to modify restrictions.

Parameters
[in]valueThe new value.

◆ set_copy_requires_writer_permission()

void google_drive_api::Drive::DriveRestrictions::set_copy_requires_writer_permission ( bool  value)
inline

Change the 'copyRequiresWriterPermission' attribute.

Whether the options to copy, print, or download files inside this shared 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 shared drive.

Parameters
[in]valueThe new value.

◆ set_domain_users_only()

void google_drive_api::Drive::DriveRestrictions::set_domain_users_only ( bool  value)
inline

Change the 'domainUsersOnly' attribute.

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

Parameters
[in]valueThe new value.

◆ set_drive_members_only()

void google_drive_api::Drive::DriveRestrictions::set_drive_members_only ( bool  value)
inline

Change the 'driveMembersOnly' attribute.

Whether access to items inside this shared drive is restricted to its members.

Parameters
[in]valueThe new value.

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