Class ProjectsResource.InstancesResource.MoveRequest
Moves the instance to the target instance config. The returned long-running operation can be used to
track the progress of moving the instance. MoveInstance
returns FAILED_PRECONDITION
if the instance
meets any of the following criteria: * Has an ongoing move to a different instance config * Has backups
- Has an ongoing update * Is under free trial * Contains any CMEK-enabled databases While the operation is pending: * All other attempts to modify the instance, including changes to its compute capacity, are rejected. * The following database and backup admin operations are rejected: * DatabaseAdmin.CreateDatabase, * DatabaseAdmin.UpdateDatabaseDdl (Disabled if default_leader is specified in the request.) * DatabaseAdmin.RestoreDatabase * DatabaseAdmin.CreateBackup * DatabaseAdmin.CopyBackup
- Both the source and target instance configs are subject to hourly compute and storage charges. * The
instance may experience higher read-write latencies and a higher transaction abort rate. However, moving
an instance does not cause any downtime. The returned long-running operation will have a name of the
format
/operations/
and can be used to track the move instance operation. The metadata field type is MoveInstanceMetadata. The response field type is Instance, if successful. Cancelling the operation sets its metadata's cancel_time. Cancellation is not immediate since it involves moving any data previously moved to target instance config back to the original instance config. The same operation can be used to track the progress of the cancellation. Upon successful completion of the cancellation, the operation terminates with CANCELLED status. Upon completion(if not cancelled) of the returned operation: * Instance would be successfully moved to the target instance config. * You are billed for compute and storage in target instance config. Authorization requiresspanner.instances.update
permission on the resource instance. For more details, please see documentation.
Inheritance
ProjectsResource.InstancesResource.MoveRequest
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.MoveRequest : SpannerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
MoveRequest(IClientService, MoveInstanceRequest, string)
Constructs a new Move request.
Declaration
public MoveRequest(IClientService service, MoveInstanceRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
MoveInstanceRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.Operation>.HttpMethod
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.Operation>.MethodName
Name
Required. The instance to move. Values are of the form projects//instances/
.
Declaration
[RequestParameter("name", RequestParameterType.Path)]
public virtual string Name { get; }
Property Value
Type | Description |
---|---|
string |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.Spanner.v1.Data.Operation>.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.Spanner.v1.Data.Operation>.GetBody()
InitParameters()
Initializes Move parameter list.
Declaration
protected override void InitParameters()