Show / Hide Table of Contents

Class InstancesResource.PromoteReplicaRequest

Promotes the read replica instance to be an independent Cloud SQL primary instance. Using this operation might cause your instance to restart.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<Operation>
SQLAdminBaseServiceRequest<Operation>
InstancesResource.PromoteReplicaRequest
Implements
IClientServiceRequest<Operation>
IClientServiceRequest
Inherited Members
SQLAdminBaseServiceRequest<Operation>.Xgafv
SQLAdminBaseServiceRequest<Operation>.AccessToken
SQLAdminBaseServiceRequest<Operation>.Alt
SQLAdminBaseServiceRequest<Operation>.Callback
SQLAdminBaseServiceRequest<Operation>.Fields
SQLAdminBaseServiceRequest<Operation>.Key
SQLAdminBaseServiceRequest<Operation>.OauthToken
SQLAdminBaseServiceRequest<Operation>.PrettyPrint
SQLAdminBaseServiceRequest<Operation>.QuotaUser
SQLAdminBaseServiceRequest<Operation>.UploadType
SQLAdminBaseServiceRequest<Operation>.UploadProtocol
ClientServiceRequest<Operation>.Execute()
ClientServiceRequest<Operation>.ExecuteAsStream()
ClientServiceRequest<Operation>.ExecuteAsync()
ClientServiceRequest<Operation>.ExecuteAsync(CancellationToken)
ClientServiceRequest<Operation>.ExecuteAsStreamAsync()
ClientServiceRequest<Operation>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<Operation>.CreateRequest(bool?)
ClientServiceRequest<Operation>.GenerateRequestUri()
ClientServiceRequest<Operation>.GetBody()
ClientServiceRequest<Operation>.GetDefaultETagAction(string)
ClientServiceRequest<Operation>.ETagAction
ClientServiceRequest<Operation>.ModifyRequest
ClientServiceRequest<Operation>.ValidateParameters
ClientServiceRequest<Operation>.ApiVersion
ClientServiceRequest<Operation>.RequestParameters
ClientServiceRequest<Operation>.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.SQLAdmin.v1
Assembly: Google.Apis.SQLAdmin.v1.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 to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary 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
ClientServiceRequest<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
ClientServiceRequest<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
ClientServiceRequest<Operation>.RestPath

Methods

InitParameters()

Initializes PromoteReplica parameter list.

Declaration
protected override void InitParameters()
Overrides
SQLAdminBaseServiceRequest<Operation>.InitParameters()

Implements

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