Class: Google::Apis::AlertcenterV1beta1::PrimaryAdminChangedEvent

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

Overview

Event occurred when primary admin changed in customer's account. The event are being received from insight forwarder

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrimaryAdminChangedEvent

Returns a new instance of PrimaryAdminChangedEvent.



1384
1385
1386
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1384

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

Instance Attribute Details

#domainString

domain in which actioned occurred Corresponds to the JSON property domain

Returns:

  • (String)


1372
1373
1374
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1372

def domain
  @domain
end

#previous_admin_emailString

Email of person who was the primary admin before the action Corresponds to the JSON property previousAdminEmail

Returns:

  • (String)


1377
1378
1379
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1377

def previous_admin_email
  @previous_admin_email
end

#updated_admin_emailString

Email of person who is the primary admin after the action Corresponds to the JSON property updatedAdminEmail

Returns:

  • (String)


1382
1383
1384
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1382

def updated_admin_email
  @updated_admin_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1389
1390
1391
1392
1393
# File 'lib/google/apis/alertcenter_v1beta1/classes.rb', line 1389

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @previous_admin_email = args[:previous_admin_email] if args.key?(:previous_admin_email)
  @updated_admin_email = args[:updated_admin_email] if args.key?(:updated_admin_email)
end