# Security Command Center V2 API - Class Google::Cloud::SecurityCenter::V2::DataAccessEvent (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.1 1.0.0 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.0 Reference documentation and code samples for the Security Command Center V2 API class Google::Cloud::SecurityCenter::V2::DataAccessEvent.

Details about a data access attempt made by a principal not authorized under
applicable data security policy.

## Inherits

- [Object](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-Kubernetes-Object)

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #event_id

    def event_id() -> ::String

**Returns**

- (::String) --- Unique identifier for data access event.

### #event_id=

    def event_id=(value) -> ::String

**Parameter**

- **value** (::String) --- Unique identifier for data access event.
**Returns**

- (::String) --- Unique identifier for data access event.

### #event_time

    def event_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Timestamp)) --- Timestamp of data access event.

### #event_time=

    def event_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Timestamp)) --- Timestamp of data access event.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Protobuf-Timestamp)) --- Timestamp of data access event.

### #operation

    def operation() -> ::Google::Cloud::SecurityCenter::V2::DataAccessEvent::Operation

**Returns**

- ([::Google::Cloud::SecurityCenter::V2::DataAccessEvent::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-DataAccessEvent-Operation)) --- The operation performed by the principal to access the data.

### #operation=

    def operation=(value) -> ::Google::Cloud::SecurityCenter::V2::DataAccessEvent::Operation

**Parameter**

- **value** ([::Google::Cloud::SecurityCenter::V2::DataAccessEvent::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-DataAccessEvent-Operation)) --- The operation performed by the principal to access the data.
**Returns**

- ([::Google::Cloud::SecurityCenter::V2::DataAccessEvent::Operation](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security_center-v2/latest/Google-Cloud-SecurityCenter-V2-DataAccessEvent-Operation)) --- The operation performed by the principal to access the data.

### #principal_email

    def principal_email() -> ::String

**Returns**

- (::String) --- The email address of the principal that accessed the data. The principal could be a user account, service account, Google group, or other.

### #principal_email=

    def principal_email=(value) -> ::String

**Parameter**

- **value** (::String) --- The email address of the principal that accessed the data. The principal could be a user account, service account, Google group, or other.
**Returns**

- (::String) --- The email address of the principal that accessed the data. The principal could be a user account, service account, Google group, or other.