#include <team_drive.h>
A set of restrictions that apply to this Team Drive or items inside this Team Drive.
◆ TeamDriveRestrictions() [1/2]
google_drive_api::TeamDrive::TeamDriveRestrictions::TeamDriveRestrictions |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The 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] | storage | The underlying data storage for this instance. |
◆ ~TeamDriveRestrictions()
google_drive_api::TeamDrive::TeamDriveRestrictions::~TeamDriveRestrictions |
( |
| ) |
|
|
virtual |
◆ 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()
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
-
◆ 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
-
◆ 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
-
◆ 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
-
The documentation for this class was generated from the following files:
- google/drive_api/team_drive.h
- google/drive_api/team_drive.cc