Show / Hide Table of Contents

Class ObjectsResource.MoveRequest

Moves the source object to the destination object in the same bucket.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Object>
StorageBaseServiceRequest<Object>
ObjectsResource.MoveRequest
Implements
IClientServiceRequest<Object>
IClientServiceRequest
Inherited Members
StorageBaseServiceRequest<Object>.Alt
StorageBaseServiceRequest<Object>.Fields
StorageBaseServiceRequest<Object>.Key
StorageBaseServiceRequest<Object>.OauthToken
StorageBaseServiceRequest<Object>.PrettyPrint
StorageBaseServiceRequest<Object>.QuotaUser
StorageBaseServiceRequest<Object>.UploadType
StorageBaseServiceRequest<Object>.UserIp
ClientServiceRequest<Object>.Execute()
ClientServiceRequest<Object>.ExecuteAsStream()
ClientServiceRequest<Object>.ExecuteAsync()
ClientServiceRequest<Object>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Object>.ExecuteAsStreamAsync()
ClientServiceRequest<Object>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Object>.CreateRequest(bool?)
ClientServiceRequest<Object>.GenerateRequestUri()
ClientServiceRequest<Object>.GetBody()
ClientServiceRequest<Object>.GetDefaultETagAction(string)
ClientServiceRequest<Object>.ETagAction
ClientServiceRequest<Object>.ModifyRequest
ClientServiceRequest<Object>.ValidateParameters
ClientServiceRequest<Object>.ApiVersion
ClientServiceRequest<Object>.RequestParameters
ClientServiceRequest<Object>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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
ClientServiceRequest<Object>.HttpMethod

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
ClientServiceRequest<Object>.MethodName

Projection

Set of properties to return. Defaults to noAcl.

Declaration
[RequestParameter("projection", RequestParameterType.Query)]
public virtual ObjectsResource.MoveRequest.ProjectionEnum? Projection { get; set; }
Property Value
Type Description
ObjectsResource.MoveRequest.ProjectionEnum?

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<Object>.RestPath

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()
Overrides
StorageBaseServiceRequest<Object>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX