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

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

Overview

Output only. Information about the type of the item.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Entity

Returns a new instance of Entity.



1055
1056
1057
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1055

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

Instance Attribute Details

#customer_idString

Output only. The unique identifier of the customer's account. Corresponds to the JSON property customerId

Returns:

  • (String)


1032
1033
1034
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1032

def customer_id
  @customer_id
end

#entity_idString

Output only. 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)


1038
1039
1040
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1038

def entity_id
  @entity_id
end

#profile_idString

Output only. The user's immutable Google Workspace profile identifier. Corresponds to the JSON property profileId

Returns:

  • (String)


1043
1044
1045
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1043

def profile_id
  @profile_id
end

#typeString

Output only. The type of item. The value is user. Corresponds to the JSON property type

Returns:

  • (String)


1048
1049
1050
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1048

def type
  @type
end

#user_emailString

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

Returns:

  • (String)


1053
1054
1055
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1053

def user_email
  @user_email
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1060
1061
1062
1063
1064
1065
1066
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1060

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