Class ProjectsResource.InstancesResource.DatabasesResource.ChangequorumRequest
ChangeQuorum
is strictly restricted to databases that use dual-region instance configurations.
Initiates a background operation to change the quorum of a database from dual-region mode to
single-region mode or vice versa. The returned long-running operation has a name of the format
projects//instances//databases//operations/
and can be used to track execution of the
ChangeQuorum
. The metadata field type is ChangeQuorumMetadata. Authorization requires
spanner.databases.changequorum
permission on the resource database.
Inheritance
Inherited Members
Namespace: Google.Apis.Spanner.v1
Assembly: Google.Apis.Spanner.v1.dll
Syntax
public class ProjectsResource.InstancesResource.DatabasesResource.ChangequorumRequest : SpannerBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
ChangequorumRequest(IClientService, ChangeQuorumRequest, string)
Constructs a new Changequorum request.
Declaration
public ChangequorumRequest(IClientService service, ChangeQuorumRequest body, string name)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
ChangeQuorumRequest | body | |
string | name |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Name
Required. Name of the database in which to apply ChangeQuorum
. Values are of the form
projects//instances//databases/
.
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
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Changequorum parameter list.
Declaration
protected override void InitParameters()