Class: Google::Apis::AdminReportsV1::UsageReport::Entity

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

Overview

Information about the type of the item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Entity

Returns a new instance of Entity



528
529
530
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 528

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

Instance Attribute Details

#customer_idString

Obfuscated customer id for the record. Corresponds to the JSON property customerId

Returns:

  • (String)


505
506
507
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 505

def customer_id
  @customer_id
end

#entity_idString

Object key. Only relevant if entity.type = "OBJECT" Note: external-facing name of report is "Entities" rather than "Objects". Corresponds to the JSON property entityId

Returns:

  • (String)


511
512
513
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 511

def entity_id
  @entity_id
end

#profile_idString

Obfuscated user id for the record. Corresponds to the JSON property profileId

Returns:

  • (String)


516
517
518
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 516

def profile_id
  @profile_id
end

#typeString

The type of item, can be customer, user, or entity (aka. object). Corresponds to the JSON property type

Returns:

  • (String)


521
522
523
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 521

def type
  @type
end

#user_emailString

user's email. Only relevant if entity.type = "USER" Corresponds to the JSON property userEmail

Returns:

  • (String)


526
527
528
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 526

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



533
534
535
536
537
538
539
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 533

def update!(**args)
  @customer_id = args[:customer_id] if args.key?(:customer_id)
  @entity_id = args[:entity_id] if args.key?(:entity_id)
  @profile_id = args[:profile_id] if args.key?(:profile_id)
  @type = args[:type] if args.key?(:type)
  @user_email = args[:user_email] if args.key?(:user_email)
end