Class FoldersResource
The "folders" collection of methods.
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class FoldersResource
Constructors
FoldersResource(IClientService)
Constructs a new resource.
Declaration
public FoldersResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string, string)
Permanently deletes a folder. Only applicable to buckets with hierarchical namespace enabled.
Declaration
public virtual FoldersResource.DeleteRequest Delete(string bucket, string folder)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the bucket in which the folder resides. |
string | folder | Name of a folder. |
Returns
Type | Description |
---|---|
FoldersResource.DeleteRequest |
Get(string, string)
Returns metadata for the specified folder. Only applicable to buckets with hierarchical namespace enabled.
Declaration
public virtual FoldersResource.GetRequest Get(string bucket, string folder)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the bucket in which the folder resides. |
string | folder | Name of a folder. |
Returns
Type | Description |
---|---|
FoldersResource.GetRequest |
Insert(Folder, string)
Creates a new folder. Only applicable to buckets with hierarchical namespace enabled.
Declaration
public virtual FoldersResource.InsertRequest Insert(Folder body, string bucket)
Parameters
Type | Name | Description |
---|---|---|
Folder | body | The body of the request. |
string | bucket | Name of the bucket in which the folder resides. |
Returns
Type | Description |
---|---|
FoldersResource.InsertRequest |
List(string)
Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled.
Declaration
public virtual FoldersResource.ListRequest List(string bucket)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the bucket in which to look for folders. |
Returns
Type | Description |
---|---|
FoldersResource.ListRequest |
Rename(string, string, string)
Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled.
Declaration
public virtual FoldersResource.RenameRequest Rename(string bucket, string sourceFolder, string destinationFolder)
Parameters
Type | Name | Description |
---|---|---|
string | bucket | Name of the bucket in which the folders are in. |
string | sourceFolder | Name of the source folder. |
string | destinationFolder | Name of the destination folder. |
Returns
Type | Description |
---|---|
FoldersResource.RenameRequest |