@@ -315,6 +315,86 @@ message SessionEvent {
315315 google.protobuf.Duration unassigned_duration = 8 ;
316316}
317317
318+ // Payload associated with Governance related log events.
319+ message GovernanceEvent {
320+ // Information about Entity resource that the log event is associated with.
321+ message Entity {
322+ // Type of entity.
323+ enum EntityType {
324+ // An unspecified Entity type.
325+ ENTITY_TYPE_UNSPECIFIED = 0 ;
326+
327+ // Table entity type.
328+ TABLE = 1 ;
329+
330+ // Fileset entity type.
331+ FILESET = 2 ;
332+ }
333+
334+ // The Entity resource the log event is associated with.
335+ // Format:
336+ // `projects/{project_number}/locations/{location_id}/lakes/{lake_id}/zones/{zone_id}/entities/{entity_id}`
337+ string entity = 1 [(google.api.resource_reference ) = {
338+ type : "dataplex.googleapis.com/Entity"
339+ }];
340+
341+ // Type of entity.
342+ EntityType entity_type = 2 ;
343+ }
344+
345+ // Type of governance log event.
346+ enum EventType {
347+ // An unspecified event type.
348+ EVENT_TYPE_UNSPECIFIED = 0 ;
349+
350+ // Resource IAM policy update event.
351+ RESOURCE_IAM_POLICY_UPDATE = 1 ;
352+
353+ // BigQuery table create event.
354+ BIGQUERY_TABLE_CREATE = 2 ;
355+
356+ // BigQuery table update event.
357+ BIGQUERY_TABLE_UPDATE = 3 ;
358+
359+ // BigQuery table delete event.
360+ BIGQUERY_TABLE_DELETE = 4 ;
361+
362+ // BigQuery connection create event.
363+ BIGQUERY_CONNECTION_CREATE = 5 ;
364+
365+ // BigQuery connection update event.
366+ BIGQUERY_CONNECTION_UPDATE = 6 ;
367+
368+ // BigQuery connection delete event.
369+ BIGQUERY_CONNECTION_DELETE = 7 ;
370+
371+ // BigQuery taxonomy created.
372+ BIGQUERY_TAXONOMY_CREATE = 10 ;
373+
374+ // BigQuery policy tag created.
375+ BIGQUERY_POLICY_TAG_CREATE = 11 ;
376+
377+ // BigQuery policy tag deleted.
378+ BIGQUERY_POLICY_TAG_DELETE = 12 ;
379+
380+ // BigQuery set iam policy for policy tag.
381+ BIGQUERY_POLICY_TAG_SET_IAM_POLICY = 13 ;
382+
383+ // Access policy update event.
384+ ACCESS_POLICY_UPDATE = 14 ;
385+ }
386+
387+ // The log message.
388+ string message = 1 ;
389+
390+ // The type of the event.
391+ EventType event_type = 2 ;
392+
393+ // Entity resource information if the log event is associated with a
394+ // specific entity.
395+ optional Entity entity = 3 ;
396+ }
397+
318398// These messages contain information about the execution of a datascan.
319399// The monitored resource is 'DataScan'
320400// Next ID: 13
0 commit comments