public sealed class AuthorizationInfo : IMessage<AuthorizationInfo>, IEquatable<AuthorizationInfo>, IDeepCloneable<AuthorizationInfo>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Audit API class AuthorizationInfo.
public AuthorizationInfo.Types.PermissionType PermissionType { get; set; }
The type of the permission that was checked. For data access audit logs
this corresponds with the permission type that must be enabled in the
project/folder/organization IAM policy in order for the log to be written.
[[["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-28 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAuthorizationInfo\u003c/code\u003e class within the Google Cloud Audit API provides details about the authorization for a specific operation.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes properties such as \u003ccode\u003eGranted\u003c/code\u003e, which indicates whether authorization was granted, \u003ccode\u003ePermission\u003c/code\u003e to define the required IAM permission, and \u003ccode\u003eResource\u003c/code\u003e to specify the accessed resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePermissionType\u003c/code\u003e property specifies the type of permission checked, aligning with permissions required in IAM policies for logging.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eResourceAttributes\u003c/code\u003e contains details used in IAM condition evaluation, such as resource type and name, complementing information found in \u003ccode\u003eAuditLog.request_metadata.request_attributes\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThere are 8 versions of the \u003ccode\u003eAuthorizationInfo\u003c/code\u003e class ranging from 1.0.0 to the latest version 2.5.0, within the provided documentation.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Audit API - Class AuthorizationInfo (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuthorizationInfo)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Audit/2.4.0/Google.Cloud.Audit.AuthorizationInfo)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Audit/2.3.0/Google.Cloud.Audit.AuthorizationInfo)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Audit/2.2.0/Google.Cloud.Audit.AuthorizationInfo)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Audit/2.1.0/Google.Cloud.Audit.AuthorizationInfo)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Audit/2.0.0/Google.Cloud.Audit.AuthorizationInfo)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Audit/1.1.0/Google.Cloud.Audit.AuthorizationInfo)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Audit/1.0.0/Google.Cloud.Audit.AuthorizationInfo) \n\n public sealed class AuthorizationInfo : IMessage\u003cAuthorizationInfo\u003e, IEquatable\u003cAuthorizationInfo\u003e, IDeepCloneable\u003cAuthorizationInfo\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Audit API class AuthorizationInfo.\n\nAuthorization information for the operation. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AuthorizationInfo \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AuthorizationInfo](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuthorizationInfo), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AuthorizationInfo](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuthorizationInfo), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AuthorizationInfo](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit.AuthorizationInfo), [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.Audit](/dotnet/docs/reference/Google.Cloud.Audit/latest/Google.Cloud.Audit)\n\nAssembly\n--------\n\nGoogle.Cloud.Audit.dll\n\nConstructors\n------------\n\n### AuthorizationInfo()\n\n public AuthorizationInfo()\n\n### AuthorizationInfo(AuthorizationInfo)\n\n public AuthorizationInfo(AuthorizationInfo other)\n\nProperties\n----------\n\n### Granted\n\n public bool Granted { get; set; }\n\nWhether or not authorization for `resource` and `permission`\nwas granted.\n\n### Permission\n\n public string Permission { get; set; }\n\nThe required IAM permission.\n\n### PermissionType\n\n public AuthorizationInfo.Types.PermissionType PermissionType { get; set; }\n\nThe type of the permission that was checked. For data access audit logs\nthis corresponds with the permission type that must be enabled in the\nproject/folder/organization IAM policy in order for the log to be written.\n\n### Resource\n\n public string Resource { get; set; }\n\nThe resource being accessed, as a REST-style or cloud resource string.\nFor example: \n\n bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID\n\nor\nprojects/PROJECTID/datasets/DATASETID\n\n### ResourceAttributes\n\n public AttributeContext.Types.Resource ResourceAttributes { get; set; }\n\nResource attributes used in IAM condition evaluation. This field contains\nresource attributes like resource type and resource name.\n\nTo get the whole view of the attributes used in IAM\ncondition evaluation, the user must also look into\n`AuditLog.request_metadata.request_attributes`."]]