public class Drive
extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
The Google Drive API allows clients to access resources from Google Drive.
For more information about this service, see the API Documentation
This service uses DriveRequestInitializer
to initialize global parameters via its
Drive.Builder
.
Modifier and Type | Class and Description |
---|---|
class |
Drive.About
The "about" collection of methods.
|
class |
Drive.Apps
The "apps" collection of methods.
|
static class |
Drive.Builder
Builder for
Drive . |
class |
Drive.Changes
The "changes" collection of methods.
|
class |
Drive.Channels
The "channels" collection of methods.
|
class |
Drive.Comments
The "comments" collection of methods.
|
class |
Drive.Drives
The "drives" collection of methods.
|
class |
Drive.Files
The "files" collection of methods.
|
class |
Drive.Operation
The "operation" collection of methods.
|
class |
Drive.Operations
The "operations" collection of methods.
|
class |
Drive.Permissions
The "permissions" collection of methods.
|
class |
Drive.Replies
The "replies" collection of methods.
|
class |
Drive.Revisions
The "revisions" collection of methods.
|
class |
Drive.Teamdrives
The "teamdrives" collection of methods.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_URL
The default encoded base URL of the service.
|
static String |
DEFAULT_BATCH_PATH
The default encoded batch path of the service.
|
static String |
DEFAULT_MTLS_ROOT_URL
The default encoded mTLS root URL of the service.
|
static String |
DEFAULT_ROOT_URL
The default encoded root URL of the service.
|
static String |
DEFAULT_SERVICE_PATH
The default encoded service path of the service.
|
Constructor and Description |
---|
Drive(com.google.api.client.http.HttpTransport transport,
com.google.api.client.json.JsonFactory jsonFactory,
com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Drive.About |
about()
An accessor for creating requests from the About collection.
|
Drive.Apps |
apps()
An accessor for creating requests from the Apps collection.
|
Drive.Changes |
changes()
An accessor for creating requests from the Changes collection.
|
Drive.Channels |
channels()
An accessor for creating requests from the Channels collection.
|
Drive.Comments |
comments()
An accessor for creating requests from the Comments collection.
|
Drive.Drives |
drives()
An accessor for creating requests from the Drives collection.
|
Drive.Files |
files()
An accessor for creating requests from the Files collection.
|
protected void |
initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) |
Drive.Operation |
operation()
An accessor for creating requests from the Operation collection.
|
Drive.Operations |
operations()
An accessor for creating requests from the Operations collection.
|
Drive.Permissions |
permissions()
An accessor for creating requests from the Permissions collection.
|
Drive.Replies |
replies()
An accessor for creating requests from the Replies collection.
|
Drive.Revisions |
revisions()
An accessor for creating requests from the Revisions collection.
|
Drive.Teamdrives |
teamdrives()
An accessor for creating requests from the Teamdrives collection.
|
getJsonFactory, getObjectParser
batch, batch, getApplicationName, getBaseUrl, getGoogleClientRequestInitializer, getRequestFactory, getRootUrl, getServicePath, getSuppressPatternChecks, getSuppressRequiredParameterChecks, getUniverseDomain, validateUniverseDomain
public static final String DEFAULT_ROOT_URL
public static final String DEFAULT_MTLS_ROOT_URL
public static final String DEFAULT_SERVICE_PATH
public static final String DEFAULT_BATCH_PATH
public static final String DEFAULT_BASE_URL
public Drive(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
Use Drive.Builder
if you need to specify any of the optional parameters.
transport
- HTTP transport, which should normally be:
com.google.api.client.extensions.appengine.http.UrlFetchTransport
newCompatibleTransport
from
com.google.api.client.extensions.android.http.AndroidHttp
com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
jsonFactory
- JSON factory, which may be:
com.google.api.client.json.jackson2.JacksonFactory
com.google.api.client.json.gson.GsonFactory
com.google.api.client.extensions.android.json.AndroidJsonFactory
httpRequestInitializer
- HTTP request initializer or null
for noneprotected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest) throws IOException
initialize
in class com.google.api.client.googleapis.services.AbstractGoogleClient
IOException
public Drive.About about()
The typical use is:
Drive drive = new Drive(...);
Drive.About.List request = drive.about().list(parameters ...)
public Drive.Apps apps()
The typical use is:
Drive drive = new Drive(...);
Drive.Apps.List request = drive.apps().list(parameters ...)
public Drive.Changes changes()
The typical use is:
Drive drive = new Drive(...);
Drive.Changes.List request = drive.changes().list(parameters ...)
public Drive.Channels channels()
The typical use is:
Drive drive = new Drive(...);
Drive.Channels.List request = drive.channels().list(parameters ...)
public Drive.Comments comments()
The typical use is:
Drive drive = new Drive(...);
Drive.Comments.List request = drive.comments().list(parameters ...)
public Drive.Drives drives()
The typical use is:
Drive drive = new Drive(...);
Drive.Drives.List request = drive.drives().list(parameters ...)
public Drive.Files files()
The typical use is:
Drive drive = new Drive(...);
Drive.Files.List request = drive.files().list(parameters ...)
public Drive.Operation operation()
The typical use is:
Drive drive = new Drive(...);
Drive.Operation.List request = drive.operation().list(parameters ...)
public Drive.Operations operations()
The typical use is:
Drive drive = new Drive(...);
Drive.Operations.List request = drive.operations().list(parameters ...)
public Drive.Permissions permissions()
The typical use is:
Drive drive = new Drive(...);
Drive.Permissions.List request = drive.permissions().list(parameters ...)
public Drive.Replies replies()
The typical use is:
Drive drive = new Drive(...);
Drive.Replies.List request = drive.replies().list(parameters ...)
public Drive.Revisions revisions()
The typical use is:
Drive drive = new Drive(...);
Drive.Revisions.List request = drive.revisions().list(parameters ...)
public Drive.Teamdrives teamdrives()
The typical use is:
Drive drive = new Drive(...);
Drive.Teamdrives.List request = drive.teamdrives().list(parameters ...)
Copyright © 2011–2024 Google. All rights reserved.