Class ObjectsResource.MoveRequest
Moves the source object to the destination object in the same bucket.
Inheritance
Inherited Members
Namespace: Google.Apis.Storage.v1
Assembly: Google.Apis.Storage.v1.dll
Syntax
public class ObjectsResource.MoveRequest : StorageBaseServiceRequest<Object>, IClientServiceRequest<Object>, IClientServiceRequest
Constructors
MoveRequest(IClientService, string, string, string)
Constructs a new Move request.
Declaration
public MoveRequest(IClientService service, string bucket, string sourceObject, string destinationObject)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | bucket | |
string | sourceObject | |
string | destinationObject |
Properties
Bucket
Name of the bucket in which the object resides.
Declaration
[RequestParameter("bucket", RequestParameterType.Path)]
public virtual string Bucket { get; }
Property Value
Type | Description |
---|---|
string |
DestinationObject
Name of the destination object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
Declaration
[RequestParameter("destinationObject", RequestParameterType.Path)]
public virtual string DestinationObject { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
IfGenerationMatch
Makes the operation conditional on whether the destination object's current generation matches the given
value. Setting to 0 makes the operation succeed only if there are no live versions of the object.
ifGenerationMatch
and ifGenerationNotMatch
conditions are mutually exclusive: it's an error for both
of them to be set in the request.
Declaration
[RequestParameter("ifGenerationMatch", RequestParameterType.Query)]
public virtual long? IfGenerationMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
IfGenerationNotMatch
Makes the operation conditional on whether the destination object's current generation does not match
the given value. If no live object exists, the precondition fails. Setting to 0 makes the operation
succeed only if there is a live version of the object.ifGenerationMatch
and ifGenerationNotMatch
conditions are mutually exclusive: it's an error for both of them to be set in the request.
Declaration
[RequestParameter("ifGenerationNotMatch", RequestParameterType.Query)]
public virtual long? IfGenerationNotMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
IfMetagenerationMatch
Makes the operation conditional on whether the destination object's current metageneration matches the
given value. ifMetagenerationMatch
and ifMetagenerationNotMatch
conditions are mutually exclusive:
it's an error for both of them to be set in the request.
Declaration
[RequestParameter("ifMetagenerationMatch", RequestParameterType.Query)]
public virtual long? IfMetagenerationMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
IfMetagenerationNotMatch
Makes the operation conditional on whether the destination object's current metageneration does not
match the given value. ifMetagenerationMatch
and ifMetagenerationNotMatch
conditions are mutually
exclusive: it's an error for both of them to be set in the request.
Declaration
[RequestParameter("ifMetagenerationNotMatch", RequestParameterType.Query)]
public virtual long? IfMetagenerationNotMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
IfSourceGenerationMatch
Makes the operation conditional on whether the source object's current generation matches the given
value. ifSourceGenerationMatch
and ifSourceGenerationNotMatch
conditions are mutually exclusive:
it's an error for both of them to be set in the request.
Declaration
[RequestParameter("ifSourceGenerationMatch", RequestParameterType.Query)]
public virtual long? IfSourceGenerationMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
IfSourceGenerationNotMatch
Makes the operation conditional on whether the source object's current generation does not match the
given value. ifSourceGenerationMatch
and ifSourceGenerationNotMatch
conditions are mutually
exclusive: it's an error for both of them to be set in the request.
Declaration
[RequestParameter("ifSourceGenerationNotMatch", RequestParameterType.Query)]
public virtual long? IfSourceGenerationNotMatch { get; set; }
Property Value
Type | Description |
---|---|
long? |
IfSourceMetagenerationMatch
Makes the operation conditional on whether the source object's current metageneration matches the given
value. ifSourceMetagenerationMatch
and ifSourceMetagenerationNotMatch
conditions are mutually
exclusive: it's an error for both of them to be set in the request.
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. ifSourceMetagenerationMatch
and ifSourceMetagenerationNotMatch
conditions are mutually
exclusive: it's an error for both of them to be set in the request.
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
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
SourceObject
Name of the source object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
Declaration
[RequestParameter("sourceObject", RequestParameterType.Path)]
public virtual string SourceObject { get; }
Property Value
Type | Description |
---|---|
string |
UserProject
The project to be billed for this request. Required for Requester Pays buckets.
Declaration
[RequestParameter("userProject", RequestParameterType.Query)]
public virtual string UserProject { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Move parameter list.
Declaration
protected override void InitParameters()