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

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

JSON template for a usage report.

Defined Under Namespace

Classes: Entity, Parameter

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) ⇒ UsageReport

Returns a new instance of UsageReport



485
486
487
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 485

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

Instance Attribute Details

#dateString

The date to which the record belongs. Corresponds to the JSON property date

Returns:

  • (String)


463
464
465
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 463

def date
  @date
end

#entityGoogle::Apis::AdminReportsV1::UsageReport::Entity

Information about the type of the item. Corresponds to the JSON property entity



468
469
470
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 468

def entity
  @entity
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


473
474
475
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 473

def etag
  @etag
end

#kindString

The kind of object. Corresponds to the JSON property kind

Returns:

  • (String)


478
479
480
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 478

def kind
  @kind
end

#parametersArray<Google::Apis::AdminReportsV1::UsageReport::Parameter>

Parameter value pairs for various applications. Corresponds to the JSON property parameters



483
484
485
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 483

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



490
491
492
493
494
495
496
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 490

def update!(**args)
  @date = args[:date] if args.key?(:date)
  @entity = args[:entity] if args.key?(:entity)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @parameters = args[:parameters] if args.key?(:parameters)
end