Class BlueGreenDeploymentsResource.DeleteRequest
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.
Inheritance
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1beta4
Assembly: Google.Apis.SQLAdmin.v1beta4.dll
Syntax
public class BlueGreenDeploymentsResource.DeleteRequest : SQLAdminBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
DeleteRequest(IClientService, string)
Constructs a new Delete request.
Declaration
public DeleteRequest(IClientService service, string name)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| string | name |
Properties
DeleteOldSource
Optional. If set to true, and the switchover is complete, this deletes the old source instance along with the deployment.
Declaration
[RequestParameter("deleteOldSource", RequestParameterType.Query)]
public virtual bool? DeleteOldSource { get; set; }
Property Value
| Type | Description |
|---|---|
| bool? |
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 delete. 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
InitParameters()
Initializes Delete parameter list.
Declaration
protected override void InitParameters()