Class: Google::Apis::SecuritycenterV1::DataAccessEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DataAccessEvent

Returns a new instance of DataAccessEvent.



2045
2046
2047
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2045

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#event_idString

Corresponds to the JSON property eventId

Returns:

  • (String)


2028
2029
2030
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2028

def event_id
  @event_id
end

#event_timeString

Corresponds to the JSON property eventTime

Returns:

  • (String)


2033
2034
2035
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2033

def event_time
  @event_time
end

#operationString

Corresponds to the JSON property operation

Returns:

  • (String)


2038
2039
2040
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2038

def operation
  @operation
end

#principal_emailString

Corresponds to the JSON property principalEmail

Returns:

  • (String)


2043
2044
2045
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2043

def principal_email
  @principal_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2050
2051
2052
2053
2054
2055
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 2050

def update!(**args)
  @event_id = args[:event_id] if args.key?(:event_id)
  @event_time = args[:event_time] if args.key?(:event_time)
  @operation = args[:operation] if args.key?(:operation)
  @principal_email = args[:principal_email] if args.key?(:principal_email)
end