target.apidocs.com.google.api.services.drive.model.Permission.TeamDrivePermissionDetails.html Maven / Gradle / Ivy
Permission.TeamDrivePermissionDetails (Drive API v2-rev20180830-1.26.0)
com.google.api.services.drive.model
Class Permission.TeamDrivePermissionDetails
- 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.Permission.TeamDrivePermissionDetails
-
- Enclosing class:
- Permission
public static final class Permission.TeamDrivePermissionDetails
extends com.google.api.client.json.GenericJson
Model definition for PermissionTeamDrivePermissionDetails.
-
-
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
TeamDrivePermissionDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Permission.TeamDrivePermissionDetails
clone()
List<String>
getAdditionalRoles()
Additional roles for this user.
Boolean
getInherited()
Whether this permission is inherited.
String
getInheritedFrom()
The ID of the item from which this permission is inherited.
String
getRole()
The primary role for this user.
String
getTeamDrivePermissionType()
The Team Drive permission type for this user.
Permission.TeamDrivePermissionDetails
set(String fieldName,
Object value)
Permission.TeamDrivePermissionDetails
setAdditionalRoles(List<String> additionalRoles)
Additional roles for this user.
Permission.TeamDrivePermissionDetails
setInherited(Boolean inherited)
Whether this permission is inherited.
Permission.TeamDrivePermissionDetails
setInheritedFrom(String inheritedFrom)
The ID of the item from which this permission is inherited.
Permission.TeamDrivePermissionDetails
setRole(String role)
The primary role for this user.
Permission.TeamDrivePermissionDetails
setTeamDrivePermissionType(String teamDrivePermissionType)
The Team Drive permission type for this user.
-
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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
-
getAdditionalRoles
public List<String> getAdditionalRoles()
Additional roles for this user. Only commenter is currently possible, though more may be
supported in the future.
- Returns:
- value or
null
for none
-
setAdditionalRoles
public Permission.TeamDrivePermissionDetails setAdditionalRoles(List<String> additionalRoles)
Additional roles for this user. Only commenter is currently possible, though more may be
supported in the future.
- Parameters:
additionalRoles
- additionalRoles or null
for none
-
getInherited
public Boolean getInherited()
Whether this permission is inherited. This field is always populated. This is an output-only
field.
- Returns:
- value or
null
for none
-
setInherited
public Permission.TeamDrivePermissionDetails setInherited(Boolean inherited)
Whether this permission is inherited. This field is always populated. This is an output-only
field.
- Parameters:
inherited
- inherited or null
for none
-
getInheritedFrom
public String getInheritedFrom()
The ID of the item from which this permission is inherited. This is an output-only field and is
only populated for members of the Team Drive.
- Returns:
- value or
null
for none
-
setInheritedFrom
public Permission.TeamDrivePermissionDetails setInheritedFrom(String inheritedFrom)
The ID of the item from which this permission is inherited. This is an output-only field and is
only populated for members of the Team Drive.
- Parameters:
inheritedFrom
- inheritedFrom or null
for none
-
getRole
public String getRole()
The primary role for this user. While new values may be added in the future, the following are
currently possible: - organizer - fileOrganizer - writer - reader
- Returns:
- value or
null
for none
-
setRole
public Permission.TeamDrivePermissionDetails setRole(String role)
The primary role for this user. While new values may be added in the future, the following are
currently possible: - organizer - fileOrganizer - writer - reader
- Parameters:
role
- role or null
for none
-
getTeamDrivePermissionType
public String getTeamDrivePermissionType()
The Team Drive permission type for this user. While new values may be added in future, the
following are currently possible: - file - member
- Returns:
- value or
null
for none
-
setTeamDrivePermissionType
public Permission.TeamDrivePermissionDetails setTeamDrivePermissionType(String teamDrivePermissionType)
The Team Drive permission type for this user. While new values may be added in future, the
following are currently possible: - file - member
- Parameters:
teamDrivePermissionType
- teamDrivePermissionType or null
for none
-
set
public Permission.TeamDrivePermissionDetails set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Permission.TeamDrivePermissionDetails clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2018 Google. All rights reserved.