public sealed class AnalyzerOrgPolicy : IMessage<AnalyzerOrgPolicy>, IEquatable<AnalyzerOrgPolicy>, IDeepCloneable<AnalyzerOrgPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class AnalyzerOrgPolicy.
This organization policy message is a modified version of the one defined in
the Organization Policy system. This message contains several fields defined
in the original organization policy with some new fields for analysis
purpose.
The full resource name of
an organization/folder/project resource where this organization policy
applies to.
For any user defined org policies, this field has the same value as
the [attached_resource] field. Only for default policy, this field has
the different value.
If inherit_from_parent is true, Rules set higher up in the
hierarchy (up to the closest root) are inherited and present in the
effective policy. If it is false, then no rules are inherited, and this
policy becomes the effective root for evaluation.
Ignores policies set above this resource and restores the default behavior
of the constraint at this resource.
This field can be set in policies for either list or boolean
constraints. If set, rules must be empty and inherit_from_parent
must be set to false.
[[["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\u003eThe \u003ccode\u003eAnalyzerOrgPolicy\u003c/code\u003e class is a modified version of the organization policy defined in the Organization Policy system, with additional fields for analysis purposes.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides reference documentation and code samples for the Google Cloud Asset Inventory v1 API, with the latest version being 3.12.0.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eAppliedResource\u003c/code\u003e, \u003ccode\u003eAttachedResource\u003c/code\u003e, \u003ccode\u003eInheritFromParent\u003c/code\u003e, \u003ccode\u003eReset\u003c/code\u003e, and \u003ccode\u003eRules\u003c/code\u003e, which detail where the policy applies, where it's set, inheritance behavior, reset options, and rule lists, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnalyzerOrgPolicy\u003c/code\u003e class implements 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\u003eMultiple versions of the \u003ccode\u003eAnalyzerOrgPolicy\u003c/code\u003e documentation are available, ranging from version 2.7.0 to the latest version 3.12.0.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Asset Inventory v1 API - Class AnalyzerOrgPolicy (3.13.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.13.0 (latest)](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.12.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.12.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.11.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.10.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.9.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.8.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.7.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.6.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.5.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.4.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.3.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.2.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.1.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/3.0.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.11.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.10.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.9.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.8.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Asset.V1/2.7.0/Google.Cloud.Asset.V1.AnalyzerOrgPolicy) \n\n public sealed class AnalyzerOrgPolicy : IMessage\u003cAnalyzerOrgPolicy\u003e, IEquatable\u003cAnalyzerOrgPolicy\u003e, IDeepCloneable\u003cAnalyzerOrgPolicy\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Asset Inventory v1 API class AnalyzerOrgPolicy.\n\nThis organization policy message is a modified version of the one defined in\nthe Organization Policy system. This message contains several fields defined\nin the original organization policy with some new fields for analysis\npurpose. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AnalyzerOrgPolicy \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AnalyzerOrgPolicy](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicy), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AnalyzerOrgPolicy](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicy), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AnalyzerOrgPolicy](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1.AnalyzerOrgPolicy), [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.Asset.V1](/dotnet/docs/reference/Google.Cloud.Asset.V1/latest/Google.Cloud.Asset.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Asset.V1.dll\n\nConstructors\n------------\n\n### AnalyzerOrgPolicy()\n\n public AnalyzerOrgPolicy()\n\n### AnalyzerOrgPolicy(AnalyzerOrgPolicy)\n\n public AnalyzerOrgPolicy(AnalyzerOrgPolicy other)\n\nProperties\n----------\n\n### AppliedResource\n\n public string AppliedResource { get; set; }\n\nThe [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of\nan organization/folder/project resource where this organization policy\napplies to.\n\nFor any user defined org policies, this field has the same value as\nthe \\[attached_resource\\] field. Only for default policy, this field has\nthe different value.\n\n### AttachedResource\n\n public string AttachedResource { get; set; }\n\nThe [full resource name](https://cloud.google.com/asset-inventory/docs/resource-name-format) of\nan organization/folder/project resource where this organization policy is\nset.\n\nNotice that some type of constraints are defined with default policy. This\nfield will be empty for them.\n\n### InheritFromParent\n\n public bool InheritFromParent { get; set; }\n\nIf `inherit_from_parent` is true, Rules set higher up in the\nhierarchy (up to the closest root) are inherited and present in the\neffective policy. If it is false, then no rules are inherited, and this\npolicy becomes the effective root for evaluation.\n\n### Reset\n\n public bool Reset { get; set; }\n\nIgnores policies set above this resource and restores the default behavior\nof the constraint at this resource.\nThis field can be set in policies for either list or boolean\nconstraints. If set, `rules` must be empty and `inherit_from_parent`\nmust be set to false.\n\n### Rules\n\n public RepeatedField\u003cAnalyzerOrgPolicy.Types.Rule\u003e Rules { get; }\n\nList of rules for this organization policy."]]