Drive API v2 (revision 65)



com.google.api.services.drive
Class Drive.Properties

java.lang.Object
  extended by com.google.api.services.drive.Drive.Properties
Enclosing class:
Drive

public class Drive.Properties
extends Object

The "properties" collection of methods.


Nested Class Summary
 class Drive.Properties.Delete
           
 class Drive.Properties.Get
           
 class Drive.Properties.Insert
           
 class Drive.Properties.List
           
 class Drive.Properties.Patch
           
 class Drive.Properties.Update
           
 
Constructor Summary
Drive.Properties()
           
 
Method Summary
 Drive.Properties.Delete delete(String fileId, String propertyKey)
          Deletes a property.
 Drive.Properties.Get get(String fileId, String propertyKey)
          Gets a property by its key.
 Drive.Properties.Insert insert(String fileId, Property content)
          Adds a property to a file.
 Drive.Properties.List list(String fileId)
          Lists a file's properties.
 Drive.Properties.Patch patch(String fileId, String propertyKey, Property content)
          Updates a property.
 Drive.Properties.Update update(String fileId, String propertyKey, Property content)
          Updates a property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Drive.Properties

public Drive.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 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 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. Create a request for the method "properties.insert". This request holds the parameters needed by the 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 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. This method supports patch semantics. Create a request for the method "properties.patch". This request holds the parameters needed by the 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 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