Class FoldersResource.InsertRequest
Creates a new folder. Only applicable to buckets with hierarchical namespace enabled.
Inheritance
FoldersResource.InsertRequest
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class FoldersResource.InsertRequest : StorageBaseServiceRequest<Folder>, IClientServiceRequest<Folder>, IClientServiceRequest
Constructors
InsertRequest(IClientService, Folder, string)
Constructs a new Insert request.
Declaration
public InsertRequest(IClientService service, Folder body, string bucket)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
Folder | body | |
string | bucket |
Properties
Bucket
Name of the bucket in which the folder resides.
Declaration
[RequestParameter("bucket", RequestParameterType.Path)]
public virtual string Bucket { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1.Data.Folder>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1.Data.Folder>.MethodName
Recursive
If true, any parent folder which doesn’t exist will be created automatically.
Declaration
[RequestParameter("recursive", RequestParameterType.Query)]
public virtual bool? Recursive { get; set; }
Property Value
Type | Description |
---|---|
bool? |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1.Data.Folder>.RestPath
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Storage.v1.Data.Folder>.GetBody()
InitParameters()
Initializes Insert parameter list.
Declaration
protected override void InitParameters()