public sealed class SecurityMarks : IMessage<SecurityMarks>, IEquatable<SecurityMarks>, IDeepCloneable<SecurityMarks>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Security Command Center v1p1beta1 API class SecurityMarks.
User specified security marks that are attached to the parent Security
Command Center resource. Security marks are scoped within a Security Command
Center organization -- they can be modified and viewed by all users who have
proper permissions on the organization.
The canonical name of the marks.
Examples:
"organizations/{organization_id}/assets/{asset_id}/securityMarks"
"folders/{folder_id}/assets/{asset_id}/securityMarks"
"projects/{project_number}/assets/{asset_id}/securityMarks"
"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
"folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks"
"projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks"
[[["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 documentation is for the \u003ccode\u003eSecurityMarks\u003c/code\u003e class within the Google Cloud Security Command Center v1p1beta1 API, used for managing security marks on resources.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSecurityMarks\u003c/code\u003e allows users to attach custom metadata to parent Security Command Center resources, which can be modified and viewed by users with proper permissions.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties like \u003ccode\u003eCanonicalName\u003c/code\u003e, \u003ccode\u003eMarks\u003c/code\u003e (a key-value map), \u003ccode\u003eName\u003c/code\u003e, and \u003ccode\u003eSecurityMarksName\u003c/code\u003e to identify and define the security marks.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSecurityMarks\u003c/code\u003e class 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, offering various functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe available versions of the API are: \u003ccode\u003e3.0.0-beta05\u003c/code\u003e (latest), \u003ccode\u003e3.0.0-beta04\u003c/code\u003e, and \u003ccode\u003e2.0.0-beta07\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Security Command Center v1p1beta1 API - Class SecurityMarks (3.0.0-beta05)\n\nVersion latestkeyboard_arrow_down\n\n- [3.0.0-beta05 (latest)](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks)\n- [3.0.0-beta04](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/3.0.0-beta04/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks)\n- [2.0.0-beta07](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/2.0.0-beta07/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks) \n\n public sealed class SecurityMarks : IMessage\u003cSecurityMarks\u003e, IEquatable\u003cSecurityMarks\u003e, IDeepCloneable\u003cSecurityMarks\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Security Command Center v1p1beta1 API class SecurityMarks.\n\nUser specified security marks that are attached to the parent Security\nCommand Center resource. Security marks are scoped within a Security Command\nCenter organization -- they can be modified and viewed by all users who have\nproper permissions on the organization. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e SecurityMarks \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[SecurityMarks](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[SecurityMarks](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[SecurityMarks](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks), [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.V1P1Beta1](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.SecurityCenter.V1P1Beta1.dll\n\nConstructors\n------------\n\n### SecurityMarks()\n\n public SecurityMarks()\n\n### SecurityMarks(SecurityMarks)\n\n public SecurityMarks(SecurityMarks other)\n\nProperties\n----------\n\n### CanonicalName\n\n public string CanonicalName { get; set; }\n\nThe canonical name of the marks.\nExamples:\n\"organizations/{organization_id}/assets/{asset_id}/securityMarks\"\n\"folders/{folder_id}/assets/{asset_id}/securityMarks\"\n\"projects/{project_number}/assets/{asset_id}/securityMarks\"\n\"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\"folders/{folder_id}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\"projects/{project_number}/sources/{source_id}/findings/{finding_id}/securityMarks\"\n\n### Marks\n\n public MapField\u003cstring, string\u003e Marks { get; }\n\nMutable user specified security marks belonging to the parent resource.\nConstraints are as follows:\n\n- Keys and values are treated as case insensitive\n- Keys must be between 1 - 256 characters (inclusive)\n- Keys must be letters, numbers, underscores, or dashes\n- Values have leading and trailing whitespace trimmed, remaining characters must be between 1 - 4096 characters (inclusive)\n\n### Name\n\n public string Name { get; set; }\n\nThe relative resource name of the SecurityMarks. See:\n\u003chttps://cloud.google.com/apis/design/resource_names#relative_resource_name\u003e\nExamples:\n\"organizations/{organization_id}/assets/{asset_id}/securityMarks\"\n\"organizations/{organization_id}/sources/{source_id}/findings/{finding_id}/securityMarks\".\n\n### SecurityMarksName\n\n public SecurityMarksName SecurityMarksName { get; set; }\n\n[SecurityMarksName](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarksName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.SecurityCenter.V1P1Beta1/latest/Google.Cloud.SecurityCenter.V1P1Beta1.SecurityMarks#Google_Cloud_SecurityCenter_V1P1Beta1_SecurityMarks_Name) resource name property."]]