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

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

JSON template for a usage report.

Defined Under Namespace

Classes: Entity, Parameter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsageReport

Returns a new instance of UsageReport.



1338
1339
1340
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1338

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

Instance Attribute Details

#dateString

Output only. The date of the report request. Corresponds to the JSON property date

Returns:

  • (String)


1312
1313
1314
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1312

def date
  @date
end

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

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



1317
1318
1319
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1317

def entity
  @entity
end

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


1322
1323
1324
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1322

def etag
  @etag
end

#kindString

The type of API resource. For a usage report, the value is admin#reports# usageReport. Corresponds to the JSON property kind

Returns:

  • (String)


1328
1329
1330
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1328

def kind
  @kind
end

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

Output only. Parameter value pairs for various applications. For the Entity Usage Report parameters and values, see the Entity Usage parameters reference. Corresponds to the JSON property parameters



1336
1337
1338
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1336

def parameters
  @parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1343
1344
1345
1346
1347
1348
1349
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1343

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