public sealed class InjectFaultRequest : IMessage<InjectFaultRequest>, IEquatable<InjectFaultRequest>, IDeepCloneable<InjectFaultRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1alpha API class InjectFaultRequest.
Message for triggering fault injection on an instance
Optional. An optional request ID to identify requests. Specify a unique
request ID so that if you must retry your request, the server ignores the
request if it has already been completed. The server guarantees that for at
least 60 minutes since the first request.
For example, consider a situation where you make an initial request and
the request times out. If you make the request again with the same request
ID, the server can check if the original operation with the same request ID
was received, and if so, ignores the second request. This prevents
clients from accidentally creating duplicate commitments.
The request ID must be a valid UUID with the exception that zero UUID is
not supported (00000000-0000-0000-0000-000000000000).
Optional. If set, performs request validation, for example, permission
checks and any other type of validation, but does not actually execute the
create request.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eInjectFaultRequest\u003c/code\u003e class within the Google Cloud AlloyDB v1alpha API, specifically for version 1.0.0-alpha10, which is the latest release.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInjectFaultRequest\u003c/code\u003e class is a message used to initiate fault injection on an instance, implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has properties such as \u003ccode\u003eFaultType\u003c/code\u003e, \u003ccode\u003eInstanceName\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eRequestId\u003c/code\u003e, and \u003ccode\u003eValidateOnly\u003c/code\u003e, allowing for the specification of the type of fault, instance, resource name, unique request ID, and validation-only mode, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class can be initialized either with no initial parameters or with another \u003ccode\u003eInjectFaultRequest\u003c/code\u003e object as a parameter for copying.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInjectFaultRequest\u003c/code\u003e class is located within the \u003ccode\u003eGoogle.Cloud.AlloyDb.V1Alpha\u003c/code\u003e namespace and is contained in the \u003ccode\u003eGoogle.Cloud.AlloyDb.V1Alpha.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1alpha API - Class InjectFaultRequest (1.0.0-alpha12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.InjectFaultRequest)\n- [1.0.0-alpha11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/1.0.0-alpha11/Google.Cloud.AlloyDb.V1Alpha.InjectFaultRequest) \n\n public sealed class InjectFaultRequest : IMessage\u003cInjectFaultRequest\u003e, IEquatable\u003cInjectFaultRequest\u003e, IDeepCloneable\u003cInjectFaultRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1alpha API class InjectFaultRequest.\n\nMessage for triggering fault injection on an instance \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e InjectFaultRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[InjectFaultRequest](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.InjectFaultRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[InjectFaultRequest](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.InjectFaultRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[InjectFaultRequest](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.InjectFaultRequest), [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.AlloyDb.V1Alpha](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Alpha.dll\n\nConstructors\n------------\n\n### InjectFaultRequest()\n\n public InjectFaultRequest()\n\n### InjectFaultRequest(InjectFaultRequest)\n\n public InjectFaultRequest(InjectFaultRequest other)\n\nProperties\n----------\n\n### FaultType\n\n public InjectFaultRequest.Types.FaultType FaultType { get; set; }\n\nRequired. The type of fault to be injected in an instance.\n\n### InstanceName\n\n public InstanceName InstanceName { get; set; }\n\n[InstanceName](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.InstanceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.InjectFaultRequest#Google_Cloud_AlloyDb_V1Alpha_InjectFaultRequest_Name) resource name property.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The name of the resource. For the required format, see the\ncomment on the Instance.name field.\n\n### RequestId\n\n public string RequestId { get; set; }\n\nOptional. An optional request ID to identify requests. Specify a unique\nrequest ID so that if you must retry your request, the server ignores the\nrequest if it has already been completed. The server guarantees that for at\nleast 60 minutes since the first request.\n\nFor example, consider a situation where you make an initial request and\nthe request times out. If you make the request again with the same request\nID, the server can check if the original operation with the same request ID\nwas received, and if so, ignores the second request. This prevents\nclients from accidentally creating duplicate commitments.\n\nThe request ID must be a valid UUID with the exception that zero UUID is\nnot supported (00000000-0000-0000-0000-000000000000).\n\n### ValidateOnly\n\n public bool ValidateOnly { get; set; }\n\nOptional. If set, performs request validation, for example, permission\nchecks and any other type of validation, but does not actually execute the\ncreate request."]]