public sealed class GetSourceRequest : IMessage<GetSourceRequest>, IEquatable<GetSourceRequest>, IDeepCloneable<GetSourceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class GetSourceRequest.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGetSourceRequest\u003c/code\u003e class is part of the Security Command Center v2 API in the \u003ccode\u003eGoogle.Cloud.SecurityCenter.V2\u003c/code\u003e namespace, used to request a specific source.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling, equality comparison, deep cloning, and buffer management.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGetSourceRequest\u003c/code\u003e includes two constructors, a default one and another that takes an existing \u003ccode\u003eGetSourceRequest\u003c/code\u003e object to copy its values, while also providing two properties namely \u003ccode\u003eName\u003c/code\u003e which is the relative resource name of the source and \u003ccode\u003eSourceName\u003c/code\u003e which provides a typed view of \u003ccode\u003eName\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property of \u003ccode\u003eGetSourceRequest\u003c/code\u003e represents the required resource name of the source, formatted as \u003ccode\u003eorganizations/[organization_id]/source/[source_id]\u003c/code\u003e, which is of \u003ccode\u003estring\u003c/code\u003e type.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class GetSourceRequest (1.2.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.0 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GetSourceRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.GetSourceRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.GetSourceRequest) \n\n public sealed class GetSourceRequest : IMessage\u003cGetSourceRequest\u003e, IEquatable\u003cGetSourceRequest\u003e, IDeepCloneable\u003cGetSourceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class GetSourceRequest.\n\nRequest message for getting a source. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GetSourceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GetSourceRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GetSourceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GetSourceRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GetSourceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GetSourceRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GetSourceRequest), [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.SecurityCenter.V2](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V2.dll\n\nConstructors\n------------\n\n### GetSourceRequest()\n\n public GetSourceRequest()\n\n### GetSourceRequest(GetSourceRequest)\n\n public GetSourceRequest(GetSourceRequest other)\n\nProperties\n----------\n\n### Name\n\n public string Name { get; set; }\n\nRequired. Relative resource name of the source. Its format is\n`organizations/[organization_id]/source/[source_id]`.\n\n### SourceName\n\n public SourceName SourceName { get; set; }\n\n[SourceName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.SourceName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.GetSourceRequest#Google_Cloud_SecurityCenter_V2_GetSourceRequest_Name) resource name property."]]