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

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

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






Drive.Properties (Google Drive API v2-rev20240809-2.0.0)












com.google.api.services.drive

Class Drive.Properties

  • Enclosing class:
    Drive


    public class Drive.Properties
    extends Object
    The "properties" collection of methods.
    • Constructor Detail

      • Properties

        public Properties()
    • Method Detail

      • delete

        public Drive.Properties.Delete delete(String fileId,
                                              String propertyKey)
                                       throws IOException
        Deletes a property. Create a request for the method "properties.delete". This request holds the parameters needed by the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        fileId - The ID of the file.
        propertyKey - The key of the property.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Drive.Properties.Get get(String fileId,
                                        String propertyKey)
                                 throws IOException
        Gets a property by its key. Create a request for the method "properties.get". This request holds the parameters needed by the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        fileId - The ID of the file.
        propertyKey - The key of the property.
        Returns:
        the request
        Throws:
        IOException
      • insert

        public Drive.Properties.Insert insert(String fileId,
                                              Property content)
                                       throws IOException
        Adds a property to a file, or updates it if it already exists. Create a request for the method "properties.insert". This request holds the parameters needed by the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        fileId - The ID of the file.
        content - the Property
        Returns:
        the request
        Throws:
        IOException
      • list

        public Drive.Properties.List list(String fileId)
                                   throws IOException
        Lists a file's properties. Create a request for the method "properties.list". This request holds the parameters needed by the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        fileId - The ID of the file.
        Returns:
        the request
        Throws:
        IOException
      • patch

        public Drive.Properties.Patch patch(String fileId,
                                            String propertyKey,
                                            Property content)
                                     throws IOException
        Updates a property. Create a request for the method "properties.patch". This request holds the parameters needed by the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        fileId - The ID of the file.
        propertyKey - The key of the property.
        content - the Property
        Returns:
        the request
        Throws:
        IOException
      • update

        public Drive.Properties.Update update(String fileId,
                                              String propertyKey,
                                              Property content)
                                       throws IOException
        Updates a property. Create a request for the method "properties.update". This request holds the parameters needed by the drive server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        fileId - The ID of the file.
        propertyKey - The key of the property.
        content - the Property
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy