target.apidocs.com.google.api.services.drive.model.TeamDrive.Restrictions.html Maven / Gradle / Ivy
TeamDrive.Restrictions (Google Drive API v3-rev20240809-2.0.0)
com.google.api.services.drive.model
Class TeamDrive.Restrictions
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.drive.model.TeamDrive.Restrictions
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Restrictions()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
TeamDrive.Restrictions
clone()
Boolean
getAdminManagedRestrictions()
Whether administrative privileges on this Team Drive are required to modify restrictions.
Boolean
getCopyRequiresWriterPermission()
Whether the options to copy, print, or download files inside this Team Drive, should be
disabled for readers and commenters.
Boolean
getDomainUsersOnly()
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.
Boolean
getSharingFoldersRequiresOrganizerPermission()
If true, only users with the organizer role can share folders.
Boolean
getTeamMembersOnly()
Whether access to items inside this Team Drive is restricted to members of this Team Drive.
TeamDrive.Restrictions
set(String fieldName,
Object value)
TeamDrive.Restrictions
setAdminManagedRestrictions(Boolean adminManagedRestrictions)
Whether administrative privileges on this Team Drive are required to modify restrictions.
TeamDrive.Restrictions
setCopyRequiresWriterPermission(Boolean copyRequiresWriterPermission)
Whether the options to copy, print, or download files inside this Team Drive, should be
disabled for readers and commenters.
TeamDrive.Restrictions
setDomainUsersOnly(Boolean domainUsersOnly)
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.
TeamDrive.Restrictions
setSharingFoldersRequiresOrganizerPermission(Boolean sharingFoldersRequiresOrganizerPermission)
If true, only users with the organizer role can share folders.
TeamDrive.Restrictions
setTeamMembersOnly(Boolean teamMembersOnly)
Whether access to items inside this Team Drive is restricted to members of this Team Drive.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAdminManagedRestrictions
public Boolean getAdminManagedRestrictions()
Whether administrative privileges on this Team Drive are required to modify restrictions.
- Returns:
- value or
null
for none
-
setAdminManagedRestrictions
public TeamDrive.Restrictions setAdminManagedRestrictions(Boolean adminManagedRestrictions)
Whether administrative privileges on this Team Drive are required to modify restrictions.
- Parameters:
adminManagedRestrictions
- adminManagedRestrictions or null
for none
-
getCopyRequiresWriterPermission
public Boolean getCopyRequiresWriterPermission()
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.
- Returns:
- value or
null
for none
-
setCopyRequiresWriterPermission
public TeamDrive.Restrictions setCopyRequiresWriterPermission(Boolean copyRequiresWriterPermission)
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:
copyRequiresWriterPermission
- copyRequiresWriterPermission or null
for none
-
getDomainUsersOnly
public Boolean getDomainUsersOnly()
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.
- Returns:
- value or
null
for none
-
setDomainUsersOnly
public TeamDrive.Restrictions setDomainUsersOnly(Boolean domainUsersOnly)
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:
domainUsersOnly
- domainUsersOnly or null
for none
-
getSharingFoldersRequiresOrganizerPermission
public Boolean getSharingFoldersRequiresOrganizerPermission()
If true, only users with the organizer role can share folders. If false, users with either the
organizer role or the file organizer role can share folders.
- Returns:
- value or
null
for none
-
setSharingFoldersRequiresOrganizerPermission
public TeamDrive.Restrictions setSharingFoldersRequiresOrganizerPermission(Boolean sharingFoldersRequiresOrganizerPermission)
If true, only users with the organizer role can share folders. If false, users with either the
organizer role or the file organizer role can share folders.
- Parameters:
sharingFoldersRequiresOrganizerPermission
- sharingFoldersRequiresOrganizerPermission or null
for none
-
getTeamMembersOnly
public Boolean getTeamMembersOnly()
Whether access to items inside this Team Drive is restricted to members of this Team Drive.
- Returns:
- value or
null
for none
-
setTeamMembersOnly
public TeamDrive.Restrictions setTeamMembersOnly(Boolean teamMembersOnly)
Whether access to items inside this Team Drive is restricted to members of this Team Drive.
- Parameters:
teamMembersOnly
- teamMembersOnly or null
for none
-
set
public TeamDrive.Restrictions set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public TeamDrive.Restrictions clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.