public final class Drive
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Drive API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Drive.BackgroundImageFile
An image file and cropping parameters from which a background image for this shared drive is set.
|
static class |
Drive.Capabilities
Capabilities the current user has on this shared drive.
|
static class |
Drive.Restrictions
A set of restrictions that apply to this shared drive or items inside this shared drive.
|
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Drive() |
| Modifier and Type | Method and Description |
|---|---|
Drive |
clone() |
Drive.BackgroundImageFile |
getBackgroundImageFile()
An image file and cropping parameters from which a background image for this shared drive is
set.
|
String |
getBackgroundImageLink()
A short-lived link to this shared drive's background image.
|
Drive.Capabilities |
getCapabilities()
Capabilities the current user has on this shared drive.
|
String |
getColorRgb()
The color of this shared drive as an RGB hex string.
|
com.google.api.client.util.DateTime |
getCreatedDate()
The time at which the shared drive was created (RFC 3339 date-time).
|
Boolean |
getHidden()
Whether the shared drive is hidden from default view.
|
String |
getId()
The ID of this shared drive which is also the ID of the top level folder of this shared drive.
|
String |
getKind()
This is always drive#drive
|
String |
getName()
The name of this shared drive.
|
String |
getOrgUnitId()
The organizational unit of this shared drive.
|
Drive.Restrictions |
getRestrictions()
A set of restrictions that apply to this shared drive or items inside this shared drive.
|
String |
getThemeId()
The ID of the theme from which the background image and color will be set.
|
Drive |
set(String fieldName,
Object value) |
Drive |
setBackgroundImageFile(Drive.BackgroundImageFile backgroundImageFile)
An image file and cropping parameters from which a background image for this shared drive is
set.
|
Drive |
setBackgroundImageLink(String backgroundImageLink)
A short-lived link to this shared drive's background image.
|
Drive |
setCapabilities(Drive.Capabilities capabilities)
Capabilities the current user has on this shared drive.
|
Drive |
setColorRgb(String colorRgb)
The color of this shared drive as an RGB hex string.
|
Drive |
setCreatedDate(com.google.api.client.util.DateTime createdDate)
The time at which the shared drive was created (RFC 3339 date-time).
|
Drive |
setHidden(Boolean hidden)
Whether the shared drive is hidden from default view.
|
Drive |
setId(String id)
The ID of this shared drive which is also the ID of the top level folder of this shared drive.
|
Drive |
setKind(String kind)
This is always drive#drive
|
Drive |
setName(String name)
The name of this shared drive.
|
Drive |
setOrgUnitId(String orgUnitId)
The organizational unit of this shared drive.
|
Drive |
setRestrictions(Drive.Restrictions restrictions)
A set of restrictions that apply to this shared drive or items inside this shared drive.
|
Drive |
setThemeId(String themeId)
The ID of the theme from which the background image and color will be set.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic Drive.BackgroundImageFile getBackgroundImageFile()
null for nonepublic Drive setBackgroundImageFile(Drive.BackgroundImageFile backgroundImageFile)
backgroundImageFile - backgroundImageFile or null for nonepublic String getBackgroundImageLink()
null for nonepublic Drive setBackgroundImageLink(String backgroundImageLink)
backgroundImageLink - backgroundImageLink or null for nonepublic Drive.Capabilities getCapabilities()
null for nonepublic Drive setCapabilities(Drive.Capabilities capabilities)
capabilities - capabilities or null for nonepublic String getColorRgb()
null for nonepublic Drive setColorRgb(String colorRgb)
colorRgb - colorRgb or null for nonepublic com.google.api.client.util.DateTime getCreatedDate()
null for nonepublic Drive setCreatedDate(com.google.api.client.util.DateTime createdDate)
createdDate - createdDate or null for nonepublic Boolean getHidden()
null for nonepublic Drive setHidden(Boolean hidden)
hidden - hidden or null for nonepublic String getId()
null for nonepublic Drive setId(String id)
id - id or null for nonepublic String getKind()
null for nonepublic Drive setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic Drive setName(String name)
name - name or null for nonepublic String getOrgUnitId()
null for nonepublic Drive setOrgUnitId(String orgUnitId)
orgUnitId - orgUnitId or null for nonepublic Drive.Restrictions getRestrictions()
null for nonepublic Drive setRestrictions(Drive.Restrictions restrictions)
restrictions - restrictions or null for nonepublic String getThemeId()
null for nonepublic Drive setThemeId(String themeId)
themeId - themeId or null for nonepublic Drive set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Drive clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2023 Google. All rights reserved.