Class InstancesResource.PromoteReplicaRequest
Promotes the read replica instance to be a stand-alone Cloud SQL instance. Using this operation might cause your instance to restart.
Inheritance
InstancesResource.PromoteReplicaRequest
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class InstancesResource.PromoteReplicaRequest : SQLAdminBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
PromoteReplicaRequest(IClientService, string, string)
Constructs a new PromoteReplica request.
Declaration
public PromoteReplicaRequest(IClientService service, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | project | |
string | instance |
Properties
Failover
Set to true if the promote operation should attempt to re-add the original primary as a replica when it comes back online. Otherwise, if this value is false or not set, the original primary will be a standalone instance.
Declaration
[RequestParameter("failover", RequestParameterType.Query)]
public virtual bool? Failover { get; set; }
Property Value
Type | Description |
---|---|
bool? |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.SQLAdmin.v1beta4.Data.Operation>.HttpMethod
Instance
Cloud SQL read replica instance name.
Declaration
[RequestParameter("instance", RequestParameterType.Path)]
public virtual string Instance { get; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Google.Apis.Requests.ClientServiceRequest<Google.Apis.SQLAdmin.v1beta4.Data.Operation>.MethodName
Project
ID of the project that contains the read replica.
Declaration
[RequestParameter("project", RequestParameterType.Path)]
public virtual string Project { 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.SQLAdmin.v1beta4.Data.Operation>.RestPath
Methods
InitParameters()
Initializes PromoteReplica parameter list.
Declaration
protected override void InitParameters()