public sealed class ComplianceVersion : IMessage<ComplianceVersion>, IEquatable<ComplianceVersion>, IDeepCloneable<ComplianceVersion>, IBufferMessage, IMessage
Reference documentation and code samples for the Grafeas v1 API class ComplianceVersion.
Describes the CIS benchmark version that is applicable to a given OS and
os version.
[[["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\u003eThe latest version of the Grafeas v1 API's \u003ccode\u003eComplianceVersion\u003c/code\u003e is 3.7.0, with several previous versions available, including versions 3.6.0, 3.5.0, 3.4.0, 3.3.0, 3.2.0, 3.1.0, 3.0.0, 2.4.0, 2.3.0, and 2.2.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eComplianceVersion\u003c/code\u003e class is used to describe the CIS benchmark version applicable to a specific operating system and its version.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eComplianceVersion\u003c/code\u003e 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.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the \u003ccode\u003eComplianceVersion\u003c/code\u003e class include \u003ccode\u003eBenchmarkDocument\u003c/code\u003e, \u003ccode\u003eCpeUri\u003c/code\u003e, and \u003ccode\u003eVersion\u003c/code\u003e, which provide details about the benchmark's document name, the CPE URI it applies to, and the benchmark's version, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available for this class: a parameterless constructor and one that takes a \u003ccode\u003eComplianceVersion\u003c/code\u003e as the parameter.\u003c/p\u003e\n"]]],[],null,["# Grafeas v1 API - Class ComplianceVersion (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ComplianceVersion)\n- [3.8.0](/dotnet/docs/reference/Grafeas.V1/3.8.0/Grafeas.V1.ComplianceVersion)\n- [3.7.0](/dotnet/docs/reference/Grafeas.V1/3.7.0/Grafeas.V1.ComplianceVersion)\n- [3.6.0](/dotnet/docs/reference/Grafeas.V1/3.6.0/Grafeas.V1.ComplianceVersion)\n- [3.5.0](/dotnet/docs/reference/Grafeas.V1/3.5.0/Grafeas.V1.ComplianceVersion)\n- [3.4.0](/dotnet/docs/reference/Grafeas.V1/3.4.0/Grafeas.V1.ComplianceVersion)\n- [3.3.0](/dotnet/docs/reference/Grafeas.V1/3.3.0/Grafeas.V1.ComplianceVersion)\n- [3.2.0](/dotnet/docs/reference/Grafeas.V1/3.2.0/Grafeas.V1.ComplianceVersion)\n- [3.1.0](/dotnet/docs/reference/Grafeas.V1/3.1.0/Grafeas.V1.ComplianceVersion)\n- [3.0.0](/dotnet/docs/reference/Grafeas.V1/3.0.0/Grafeas.V1.ComplianceVersion)\n- [2.4.0](/dotnet/docs/reference/Grafeas.V1/2.4.0/Grafeas.V1.ComplianceVersion)\n- [2.3.0](/dotnet/docs/reference/Grafeas.V1/2.3.0/Grafeas.V1.ComplianceVersion)\n- [2.2.0](/dotnet/docs/reference/Grafeas.V1/2.2.0/Grafeas.V1.ComplianceVersion) \n\n public sealed class ComplianceVersion : IMessage\u003cComplianceVersion\u003e, IEquatable\u003cComplianceVersion\u003e, IDeepCloneable\u003cComplianceVersion\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Grafeas v1 API class ComplianceVersion.\n\nDescribes the CIS benchmark version that is applicable to a given OS and\nos version. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ComplianceVersion \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ComplianceVersion](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ComplianceVersion), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ComplianceVersion](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ComplianceVersion), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ComplianceVersion](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1.ComplianceVersion), [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[Grafeas.V1](/dotnet/docs/reference/Grafeas.V1/latest/Grafeas.V1)\n\nAssembly\n--------\n\nGrafeas.V1.dll\n\nConstructors\n------------\n\n### ComplianceVersion()\n\n public ComplianceVersion()\n\n### ComplianceVersion(ComplianceVersion)\n\n public ComplianceVersion(ComplianceVersion other)\n\nProperties\n----------\n\n### BenchmarkDocument\n\n public string BenchmarkDocument { get; set; }\n\nThe name of the document that defines this benchmark, e.g. \"CIS\nContainer-Optimized OS\".\n\n### CpeUri\n\n public string CpeUri { get; set; }\n\nThe CPE URI (\u003chttps://cpe.mitre.org/specification/\u003e) this benchmark is\napplicable to.\n\n### Version\n\n public string Version { get; set; }\n\nThe version of the benchmark. This is set to the version of the OS-specific\nCIS document the benchmark is defined in."]]