Class: Google::Apis::AdminReportsV1::UsageReport::Entity
- Inherits:
-
Object
- Object
- Google::Apis::AdminReportsV1::UsageReport::Entity
- 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
-
#customer_id ⇒ String
Obfuscated customer id for the record.
-
#entity_id ⇒ String
Object key.
-
#profile_id ⇒ String
Obfuscated user id for the record.
-
#type ⇒ String
The type of item, can be customer, user, or entity (aka. object).
-
#user_email ⇒ String
user's email.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Entity
constructor
A new instance of Entity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Entity
Returns a new instance of Entity
422 423 424 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 422 def initialize(**args) update!(**args) end |
Instance Attribute Details
#customer_id ⇒ String
Obfuscated customer id for the record.
Corresponds to the JSON property customerId
399 400 401 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 399 def customer_id @customer_id end |
#entity_id ⇒ String
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
405 406 407 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 405 def entity_id @entity_id end |
#profile_id ⇒ String
Obfuscated user id for the record.
Corresponds to the JSON property profileId
410 411 412 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 410 def profile_id @profile_id end |
#type ⇒ String
The type of item, can be customer, user, or entity (aka. object).
Corresponds to the JSON property type
415 416 417 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 415 def type @type end |
#user_email ⇒ String
user's email. Only relevant if entity.type = "USER"
Corresponds to the JSON property userEmail
420 421 422 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 420 def user_email @user_email end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
427 428 429 430 431 432 433 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 427 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 |