Class BlueGreenDeploymentsResource.SwitchoverRequest
Switches over to green instance for a blue-green deployment.
Inheritance
BlueGreenDeploymentsResource.SwitchoverRequest
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class BlueGreenDeploymentsResource.SwitchoverRequest : SQLAdminBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
SwitchoverRequest(IClientService, SwitchoverBlueGreenDeploymentRequest, string)
Constructs a new Switchover request.
Declaration
public SwitchoverRequest(IClientService service, SwitchoverBlueGreenDeploymentRequest body, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| SwitchoverBlueGreenDeploymentRequest | 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. The name of the blue-green deployment to switch over. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}
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 Switchover parameter list.
Declaration
protected override void InitParameters()