This document describes audit logging for Gemini for Google Cloud. Google Cloud services generate audit logs that record administrative and access activities within your Google Cloud resources. For more information about Cloud Audit Logs, see the following:
- Types of audit logs
- Audit log entry structure
- Storing and routing audit logs
- Cloud Logging pricing summary
- Enable Data Access audit logs
Service name
Gemini for Google Cloud audit logs use the service name cloudaicompanion.googleapis.com
.
Filter for this service:
protoPayload.serviceName="cloudaicompanion.googleapis.com"
Methods by permission type
Each IAM permission has a type
property, whose value is an enum
that can be one of four values: ADMIN_READ
, ADMIN_WRITE
,
DATA_READ
, or DATA_WRITE
. When you call a method,
Gemini for Google Cloud generates an audit log whose category is dependent on the
type
property of the permission required to perform the method.
Methods that require an IAM permission with the type
property value
of DATA_READ
, DATA_WRITE
, or ADMIN_READ
generate
Data Access audit logs.
Methods that require an IAM permission with the type
property value
of ADMIN_WRITE
generate
Admin Activity audit logs.
Permission type | Methods |
---|---|
ADMIN_READ |
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.GetCodeRepositoryIndex google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.ListCodeRepositoryIndexes google.cloud.cloudaicompanion.v1.EntitlementService.CheckStatus |
ADMIN_WRITE |
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.CreateCodeRepositoryIndex google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.DeleteCodeRepositoryIndex google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UpdateCodeRepositoryIndex |
DATA_READ |
google.cloud.cloudaicompanion.v1.CodeGenerationService.CompleteCode google.cloud.cloudaicompanion.v1.CodeGenerationService.GenerateCode google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.GetRepositoryGroup google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.ListRepositoryGroups google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UseRepositoryGroup google.cloud.cloudaicompanion.v1.TaskCompletionService.CompleteTask google.cloud.cloudaicompanion.v1.TextGenerationService.GenerateText |
DATA_WRITE |
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.CreateRepositoryGroup google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.DeleteRepositoryGroup google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UpdateRepositoryGroup |
API interface audit logs
For information about how and which permissions are evaluated for each method, see the Identity and Access Management documentation for Gemini for Google Cloud.
google.cloud.cloudaicompanion.v1.CodeGenerationService
The following audit logs are associated with methods belonging to
google.cloud.cloudaicompanion.v1.CodeGenerationService
.
CompleteCode
- Method:
google.cloud.cloudaicompanion.v1.CodeGenerationService.CompleteCode
- Audit log type: Data access
- Permissions:
cloudaicompanion.instances.completeCode - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeGenerationService.CompleteCode"
GenerateCode
- Method:
google.cloud.cloudaicompanion.v1.CodeGenerationService.GenerateCode
- Audit log type: Data access
- Permissions:
cloudaicompanion.instances.generateCode - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeGenerationService.GenerateCode"
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService
The following audit logs are associated with methods belonging to
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService
.
CreateCodeRepositoryIndex
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.CreateCodeRepositoryIndex
- Audit log type: Admin activity
- Permissions:
cloudaicompanion.codeRepositoryIndexes.create - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.CreateCodeRepositoryIndex"
CreateRepositoryGroup
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.CreateRepositoryGroup
- Audit log type: Data access
- Permissions:
cloudaicompanion.repositoryGroups.create - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.CreateRepositoryGroup"
DeleteCodeRepositoryIndex
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.DeleteCodeRepositoryIndex
- Audit log type: Admin activity
- Permissions:
cloudaicompanion.codeRepositoryIndexes.delete - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.DeleteCodeRepositoryIndex"
DeleteRepositoryGroup
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.DeleteRepositoryGroup
- Audit log type: Data access
- Permissions:
cloudaicompanion.repositoryGroups.delete - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.DeleteRepositoryGroup"
GetCodeRepositoryIndex
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.GetCodeRepositoryIndex
- Audit log type: Data access
- Permissions:
cloudaicompanion.codeRepositoryIndexes.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.GetCodeRepositoryIndex"
GetRepositoryGroup
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.GetRepositoryGroup
- Audit log type: Data access
- Permissions:
cloudaicompanion.repositoryGroups.get - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.GetRepositoryGroup"
ListCodeRepositoryIndexes
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.ListCodeRepositoryIndexes
- Audit log type: Data access
- Permissions:
cloudaicompanion.codeRepositoryIndexes.list - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.ListCodeRepositoryIndexes"
ListRepositoryGroups
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.ListRepositoryGroups
- Audit log type: Data access
- Permissions:
cloudaicompanion.repositoryGroups.list - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.ListRepositoryGroups"
UpdateCodeRepositoryIndex
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UpdateCodeRepositoryIndex
- Audit log type: Admin activity
- Permissions:
cloudaicompanion.codeRepositoryIndexes.update - ADMIN_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UpdateCodeRepositoryIndex"
UpdateRepositoryGroup
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UpdateRepositoryGroup
- Audit log type: Data access
- Permissions:
cloudaicompanion.repositoryGroups.update - DATA_WRITE
- Method is a long-running or streaming operation:
Long-running operation
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UpdateRepositoryGroup"
UseRepositoryGroup
- Method:
google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UseRepositoryGroup
- Audit log type: Data access
- Permissions:
cloudaicompanion.repositoryGroups.use - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.CodeRepositoryIndexManagementService.UseRepositoryGroup"
google.cloud.cloudaicompanion.v1.EntitlementService
The following audit logs are associated with methods belonging to
google.cloud.cloudaicompanion.v1.EntitlementService
.
CheckStatus
- Method:
google.cloud.cloudaicompanion.v1.EntitlementService.CheckStatus
- Audit log type: Data access
- Permissions:
cloudaicompanion.entitlements.get - ADMIN_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.EntitlementService.CheckStatus"
google.cloud.cloudaicompanion.v1.TaskCompletionService
The following audit logs are associated with methods belonging to
google.cloud.cloudaicompanion.v1.TaskCompletionService
.
CompleteTask
- Method:
google.cloud.cloudaicompanion.v1.TaskCompletionService.CompleteTask
- Audit log type: Data access
- Permissions:
cloudaicompanion.instances.completeTask - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.TaskCompletionService.CompleteTask"
google.cloud.cloudaicompanion.v1.TextGenerationService
The following audit logs are associated with methods belonging to
google.cloud.cloudaicompanion.v1.TextGenerationService
.
GenerateText
- Method:
google.cloud.cloudaicompanion.v1.TextGenerationService.GenerateText
- Audit log type: Data access
- Permissions:
cloudaicompanion.instances.generateText - DATA_READ
- Method is a long-running or streaming operation:
No.
- Filter for this method:
protoPayload.methodName="google.cloud.cloudaicompanion.v1.TextGenerationService.GenerateText"