public sealed class DeleteConnectionRequest : IMessage<DeleteConnectionRequest>, IEquatable<DeleteConnectionRequest>, IDeepCloneable<DeleteConnectionRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Build v2 API class DeleteConnectionRequest.
The current etag of the connection.
If an etag is provided and does not match the current etag of the
connection, deletion will be blocked and an ABORTED error will be returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eDeleteConnectionRequest\u003c/code\u003e class within the Google Cloud Build v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDeleteConnectionRequest\u003c/code\u003e class is used to construct a request for deleting a connection within Google Cloud Build.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, for various functionalities like message handling and cloning.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eDeleteConnectionRequest\u003c/code\u003e include \u003ccode\u003eConnectionName\u003c/code\u003e, \u003ccode\u003eEtag\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eValidateOnly\u003c/code\u003e, which define the connection to be deleted, etag handling, the name format, and validation options.\u003c/p\u003e\n"],["\u003cp\u003eThere are several versions of this class, with \u003ccode\u003e1.4.0\u003c/code\u003e being the latest, and the \u003ccode\u003eDeleteConnectionRequest()\u003c/code\u003e constructor can create a new request or copy an existing one.\u003c/p\u003e\n"]]],[],null,["# Cloud Build v2 API - Class DeleteConnectionRequest (1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.3.0/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.2.0/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.1.0/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/1.0.0/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest) \n\n public sealed class DeleteConnectionRequest : IMessage\u003cDeleteConnectionRequest\u003e, IEquatable\u003cDeleteConnectionRequest\u003e, IDeepCloneable\u003cDeleteConnectionRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Build v2 API class DeleteConnectionRequest.\n\nMessage for deleting a Connection. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DeleteConnectionRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DeleteConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DeleteConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DeleteConnectionRequest](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudBuild.V2](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudBuild.V2.dll\n\nConstructors\n------------\n\n### DeleteConnectionRequest()\n\n public DeleteConnectionRequest()\n\n### DeleteConnectionRequest(DeleteConnectionRequest)\n\n public DeleteConnectionRequest(DeleteConnectionRequest other)\n\nProperties\n----------\n\n### ConnectionName\n\n public ConnectionName ConnectionName { get; set; }\n\n[ConnectionName](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.ConnectionName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.CloudBuild.V2/latest/Google.Cloud.CloudBuild.V2.DeleteConnectionRequest#Google_Cloud_CloudBuild_V2_DeleteConnectionRequest_Name) resource name property.\n\n### Etag\n\n public string Etag { get; set; }\n\nThe current etag of the connection.\nIf an etag is provided and does not match the current etag of the\nconnection, deletion will be blocked and an ABORTED error will be returned.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the Connection to delete.\nFormat: `projects/*/locations/*/connections/*`.\n\n### ValidateOnly\n\n public bool ValidateOnly { get; set; }\n\nIf set, validate the request, but do not actually post it."]]