Class: Google::Apis::AdminReportsV1::UsageReport
- Inherits:
-
Object
- Object
- Google::Apis::AdminReportsV1::UsageReport
- 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
Instance Attribute Summary collapse
-
#date ⇒ String
The date to which the record belongs.
-
#entity ⇒ Google::Apis::AdminReportsV1::UsageReport::Entity
Information about the type of the item.
-
#etag ⇒ String
ETag of the resource.
-
#kind ⇒ String
The kind of object.
-
#parameters ⇒ Array<Google::Apis::AdminReportsV1::UsageReport::Parameter>
Parameter value pairs for various applications.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UsageReport
constructor
A new instance of UsageReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UsageReport
Returns a new instance of UsageReport.
379 380 381 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ String
The date to which the record belongs.
Corresponds to the JSON property date
357 358 359 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 357 def date @date end |
#entity ⇒ Google::Apis::AdminReportsV1::UsageReport::Entity
Information about the type of the item.
Corresponds to the JSON property entity
362 363 364 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 362 def entity @entity end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
367 368 369 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 367 def etag @etag end |
#kind ⇒ String
The kind of object.
Corresponds to the JSON property kind
372 373 374 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 372 def kind @kind end |
#parameters ⇒ Array<Google::Apis::AdminReportsV1::UsageReport::Parameter>
Parameter value pairs for various applications.
Corresponds to the JSON property parameters
377 378 379 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 377 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
384 385 386 387 388 389 390 |
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 384 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 |