All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.drive.Drive.html Maven / Gradle / Ivy

There is a newer version: v3-rev20241027-2.0.0
Show newest version






Drive (Google Drive API v2-rev20240809-2.0.0)












com.google.api.services.drive

Class Drive

  • java.lang.Object
    • com.google.api.client.googleapis.services.AbstractGoogleClient
      • com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
        • com.google.api.services.drive.Drive


  • public class Drive
    extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient
    Service definition for Drive (v2).

    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.

    Since:
    1.3
    Author:
    Google, Inc.
    • Field Detail

      • DEFAULT_ROOT_URL

        public static final String DEFAULT_ROOT_URL
        The default encoded root URL of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.7
        See Also:
        Constant Field Values
      • DEFAULT_MTLS_ROOT_URL

        public static final String DEFAULT_MTLS_ROOT_URL
        The default encoded mTLS root URL of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.31
        See Also:
        Constant Field Values
      • DEFAULT_SERVICE_PATH

        public static final String DEFAULT_SERVICE_PATH
        The default encoded service path of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.7
        See Also:
        Constant Field Values
      • DEFAULT_BATCH_PATH

        public static final String DEFAULT_BATCH_PATH
        The default encoded batch path of the service. This is determined when the library is generated and normally should not be changed.
        Since:
        1.23
        See Also:
        Constant Field Values
      • DEFAULT_BASE_URL

        public static final String DEFAULT_BASE_URL
        The default encoded base URL of the service. This is determined when the library is generated and normally should not be changed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • Drive

        public Drive(com.google.api.client.http.HttpTransport transport,
                     com.google.api.client.json.JsonFactory jsonFactory,
                     com.google.api.client.http.HttpRequestInitializer httpRequestInitializer)
        Constructor.

        Use Drive.Builder if you need to specify any of the optional parameters.

        Parameters:
        transport - HTTP transport, which should normally be:
        • Google App Engine: com.google.api.client.extensions.appengine.http.UrlFetchTransport
        • Android: newCompatibleTransport from com.google.api.client.extensions.android.http.AndroidHttp
        • Java: com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()
        jsonFactory - JSON factory, which may be:
        • Jackson: com.google.api.client.json.jackson2.JacksonFactory
        • Google GSON: com.google.api.client.json.gson.GsonFactory
        • Android Honeycomb or higher: com.google.api.client.extensions.android.json.AndroidJsonFactory
        httpRequestInitializer - HTTP request initializer or null for none
        Since:
        1.7
    • Method Detail

      • initialize

        protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest<?> httpClientRequest)
                           throws IOException
        Overrides:
        initialize in class com.google.api.client.googleapis.services.AbstractGoogleClient
        Throws:
        IOException
      • about

        public Drive.About about()
        An accessor for creating requests from the About collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.About.List request = drive.about().list(parameters ...)
         
        Returns:
        the resource collection
      • apps

        public Drive.Apps apps()
        An accessor for creating requests from the Apps collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Apps.List request = drive.apps().list(parameters ...)
         
        Returns:
        the resource collection
      • changes

        public Drive.Changes changes()
        An accessor for creating requests from the Changes collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Changes.List request = drive.changes().list(parameters ...)
         
        Returns:
        the resource collection
      • channels

        public Drive.Channels channels()
        An accessor for creating requests from the Channels collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Channels.List request = drive.channels().list(parameters ...)
         
        Returns:
        the resource collection
      • children

        public Drive.Children children()
        An accessor for creating requests from the Children collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Children.List request = drive.children().list(parameters ...)
         
        Returns:
        the resource collection
      • comments

        public Drive.Comments comments()
        An accessor for creating requests from the Comments collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Comments.List request = drive.comments().list(parameters ...)
         
        Returns:
        the resource collection
      • drives

        public Drive.Drives drives()
        An accessor for creating requests from the Drives collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Drives.List request = drive.drives().list(parameters ...)
         
        Returns:
        the resource collection
      • files

        public Drive.Files files()
        An accessor for creating requests from the Files collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Files.List request = drive.files().list(parameters ...)
         
        Returns:
        the resource collection
      • parents

        public Drive.Parents parents()
        An accessor for creating requests from the Parents collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Parents.List request = drive.parents().list(parameters ...)
         
        Returns:
        the resource collection
      • permissions

        public Drive.Permissions permissions()
        An accessor for creating requests from the Permissions collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Permissions.List request = drive.permissions().list(parameters ...)
         
        Returns:
        the resource collection
      • properties

        public Drive.Properties properties()
        An accessor for creating requests from the Properties collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Properties.List request = drive.properties().list(parameters ...)
         
        Returns:
        the resource collection
      • replies

        public Drive.Replies replies()
        An accessor for creating requests from the Replies collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Replies.List request = drive.replies().list(parameters ...)
         
        Returns:
        the resource collection
      • revisions

        public Drive.Revisions revisions()
        An accessor for creating requests from the Revisions collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Revisions.List request = drive.revisions().list(parameters ...)
         
        Returns:
        the resource collection
      • teamdrives

        public Drive.Teamdrives teamdrives()
        An accessor for creating requests from the Teamdrives collection.

        The typical use is:

            Drive drive = new Drive(...);
            Drive.Teamdrives.List request = drive.teamdrives().list(parameters ...)
         
        Returns:
        the resource collection

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy