Show / Hide Table of Contents

Class BlueGreenDeploymentsResource

The "blueGreenDeployments" collection of methods.

Inheritance
object
BlueGreenDeploymentsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.SQLAdmin.v1beta4
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class BlueGreenDeploymentsResource

Constructors

BlueGreenDeploymentsResource(IClientService)

Constructs a new resource.

Declaration
public BlueGreenDeploymentsResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Create(BlueGreenDeployment, string)

Creates a blue-green deployment under a given project and location. This deployment provisions a synchronized green environment (target instance) from a blue production environment (source instance), facilitating updates like major version upgrades on the green instance without impacting the blue instance.

Declaration
public virtual BlueGreenDeploymentsResource.CreateRequest Create(BlueGreenDeployment body, string parent)
Parameters
Type Name Description
BlueGreenDeployment body

The body of the request.

string parent

Required. The parent resource where this blue-green deployment will be created. Format: projects/{project}/locations/{location}

Returns
Type Description
BlueGreenDeploymentsResource.CreateRequest

Delete(string)

Deletes a blue-green deployment, including metadata and underlying resources based on the deployment state. If issued before switchover, this deletes the green instance. If issued after switchover, this deletes the old blue instance (source instance) if the delete_old_source field in the request is set to true. All blue-green deployment metadata is permanently deleted. Resources deleted as a result of this operation are no longer accessible and can't be restored.

Declaration
public virtual BlueGreenDeploymentsResource.DeleteRequest Delete(string name)
Parameters
Type Name Description
string name

Required. The name of the blue-green deployment to delete. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}

Returns
Type Description
BlueGreenDeploymentsResource.DeleteRequest

Get(string)

Retrieves a blue-green deployment resource under a given project and location.

Declaration
public virtual BlueGreenDeploymentsResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The name of the blue-green deployment to retrieve. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}

Returns
Type Description
BlueGreenDeploymentsResource.GetRequest

List(string)

Lists blue-green deployments under a given project.

Declaration
public virtual BlueGreenDeploymentsResource.ListRequest List(string parent)
Parameters
Type Name Description
string parent

Required. The parent resource whose blue-green deployments are to be listed. Format: projects/{project}/locations/{location}

Returns
Type Description
BlueGreenDeploymentsResource.ListRequest

Switchover(SwitchoverBlueGreenDeploymentRequest, string)

Switches over to green instance for a blue-green deployment.

Declaration
public virtual BlueGreenDeploymentsResource.SwitchoverRequest Switchover(SwitchoverBlueGreenDeploymentRequest body, string name)
Parameters
Type Name Description
SwitchoverBlueGreenDeploymentRequest body

The body of the request.

string name

Required. The name of the blue-green deployment to switch over. Format: projects/{project}/locations/{location}/blueGreenDeployments/{blue_green_deployment}

Returns
Type Description
BlueGreenDeploymentsResource.SwitchoverRequest
In this article
Back to top Generated by DocFX