public sealed class CreateSourceRequest : IMessage<CreateSourceRequest>, IEquatable<CreateSourceRequest>, IDeepCloneable<CreateSourceRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Security Command Center v2 API class CreateSourceRequest.
[[["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\u003eCreateSourceRequest\u003c/code\u003e class is used to send requests for creating a new source in the Security Command Center v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \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\u003eIt requires a parent organization name, formatted as \u003ccode\u003eorganizations/[organization_id]\u003c/code\u003e, to be specified as the parent resource for the new source.\u003c/p\u003e\n"],["\u003cp\u003eIt requires a \u003ccode\u003eSource\u003c/code\u003e object, but only the \u003ccode\u003edisplay_name\u003c/code\u003e and \u003ccode\u003edescription\u003c/code\u003e properties of this \u003ccode\u003eSource\u003c/code\u003e object will be utilized during creation.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, one of which accepts another \u003ccode\u003eCreateSourceRequest\u003c/code\u003e as input, allowing for easy object duplication.\u003c/p\u003e\n"]]],[],null,["# Security Command Center v2 API - Class CreateSourceRequest (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.CreateSourceRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.1.0/Google.Cloud.SecurityCenter.V2.CreateSourceRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/1.0.0/Google.Cloud.SecurityCenter.V2.CreateSourceRequest) \n\n public sealed class CreateSourceRequest : IMessage\u003cCreateSourceRequest\u003e, IEquatable\u003cCreateSourceRequest\u003e, IDeepCloneable\u003cCreateSourceRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Security Command Center v2 API class CreateSourceRequest.\n\nRequest message for creating a source. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CreateSourceRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CreateSourceRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateSourceRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CreateSourceRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateSourceRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CreateSourceRequest](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateSourceRequest), [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### CreateSourceRequest()\n\n public CreateSourceRequest()\n\n### CreateSourceRequest(CreateSourceRequest)\n\n public CreateSourceRequest(CreateSourceRequest other)\n\nProperties\n----------\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. Resource name of the new source's parent. Its format should be\n`organizations/[organization_id]`.\n\n### ParentAsOrganizationName\n\n public OrganizationName ParentAsOrganizationName { get; set; }\n\n[OrganizationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.OrganizationName.html)-typed view over the [Parent](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V2/latest/Google.Cloud.SecurityCenter.V2.CreateSourceRequest#Google_Cloud_SecurityCenter_V2_CreateSourceRequest_Parent) resource name property.\n\n### Source\n\n public Source Source { get; set; }\n\nRequired. The Source being created, only the display_name and description\nwill be used. All other fields will be ignored."]]