Class FoldersResource.RenameRequest
Renames a source folder to a destination folder. Only applicable to buckets with hierarchical namespace enabled.
Inheritance
FoldersResource.RenameRequest
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class FoldersResource.RenameRequest : StorageBaseServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest<GoogleLongrunningOperation>, IClientServiceRequest
Constructors
RenameRequest(IClientService, string, string, string)
Constructs a new Rename request.
Declaration
public RenameRequest(IClientService service, string bucket, string sourceFolder, string destinationFolder)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | bucket | |
string | sourceFolder | |
string | destinationFolder |
Properties
Bucket
Name of the bucket in which the folders are in.
Declaration
[RequestParameter("bucket", RequestParameterType.Path)]
public virtual string Bucket { get; }
Property Value
Type | Description |
---|---|
string |
DestinationFolder
Name of the destination folder.
Declaration
[RequestParameter("destinationFolder", RequestParameterType.Path)]
public virtual string DestinationFolder { 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.GoogleLongrunningOperation>.HttpMethod
IfSourceMetagenerationMatch
Makes the operation conditional on whether the source object's current metageneration matches the given value.
Declaration
[RequestParameter("ifSourceMetagenerationMatch", RequestParameterType.Query)]
public virtual long? IfSourceMetagenerationMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
IfSourceMetagenerationNotMatch
Makes the operation conditional on whether the source object's current metageneration does not match the given value.
Declaration
[RequestParameter("ifSourceMetagenerationNotMatch", RequestParameterType.Query)]
public virtual long? IfSourceMetagenerationNotMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
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.GoogleLongrunningOperation>.MethodName
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.GoogleLongrunningOperation>.RestPath
SourceFolder
Name of the source folder.
Declaration
[RequestParameter("sourceFolder", RequestParameterType.Path)]
public virtual string SourceFolder { get; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Rename parameter list.
Declaration
protected override void InitParameters()