Class PropertiesResource
The "properties" collection of methods.
Inherited Members
Namespace: Google.Apis.Drive.v2
Assembly: Google.Apis.Drive.v2.dll
Syntax
public class PropertiesResource
Constructors
PropertiesResource(IClientService)
Constructs a new resource.
Declaration
public PropertiesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Deletes a property.
Declaration
public virtual PropertiesResource.DeleteRequest Delete(string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
string | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.DeleteRequest |
Get(string, string)
Gets a property by its key.
Declaration
public virtual PropertiesResource.GetRequest Get(string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
string | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.GetRequest |
Insert(Property, string)
Adds a property to a file, or updates it if it already exists.
Declaration
public virtual PropertiesResource.InsertRequest Insert(Property body, string fileId)
Parameters
Type | Name | Description |
---|---|---|
Property | body | The body of the request. |
string | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
PropertiesResource.InsertRequest |
List(string)
Lists a file's properties.
Declaration
public virtual PropertiesResource.ListRequest List(string fileId)
Parameters
Type | Name | Description |
---|---|---|
string | fileId | The ID of the file. |
Returns
Type | Description |
---|---|
PropertiesResource.ListRequest |
Patch(Property, string, string)
Updates a property.
Declaration
public virtual PropertiesResource.PatchRequest Patch(Property body, string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
Property | body | The body of the request. |
string | fileId | The ID of the file. |
string | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.PatchRequest |
Update(Property, string, string)
Updates a property.
Declaration
public virtual PropertiesResource.UpdateRequest Update(Property body, string fileId, string propertyKey)
Parameters
Type | Name | Description |
---|---|---|
Property | body | The body of the request. |
string | fileId | The ID of the file. |
string | propertyKey | The key of the property. |
Returns
Type | Description |
---|---|
PropertiesResource.UpdateRequest |