target.apidocs.com.google.api.services.drive.Drive.Properties.html Maven / Gradle / Ivy
Drive.Properties (Google Drive API v2-rev20240809-2.0.0)
com.google.api.services.drive
Class Drive.Properties
- java.lang.Object
-
- com.google.api.services.drive.Drive.Properties
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
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
Constructors
Constructor and Description
Properties()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
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, or updates it if it already exists.
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.
-
-
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.