Class: Google::Apis::AdminReportsV1::UsageReports

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 collection of usage reports.

Defined Under Namespace

Classes: Warning

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

Returns a new instance of UsageReports.



509
510
511
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 509

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


487
488
489
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 487

def etag
  @etag
end

#kindString

The kind of object. Corresponds to the JSON property kind

Returns:

  • (String)


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

def kind
  @kind
end

#next_page_tokenString

Token for retrieving the next page Corresponds to the JSON property nextPageToken

Returns:

  • (String)


497
498
499
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 497

def next_page_token
  @next_page_token
end

#usage_reportsArray<Google::Apis::AdminReportsV1::UsageReport>

Various application parameter records. Corresponds to the JSON property usageReports



502
503
504
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 502

def usage_reports
  @usage_reports
end

#warningsArray<Google::Apis::AdminReportsV1::UsageReports::Warning>

Warnings if any. Corresponds to the JSON property warnings



507
508
509
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 507

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



514
515
516
517
518
519
520
# File 'generated/google/apis/admin_reports_v1/classes.rb', line 514

def update!(**args)
  @etag = args[:etag] if args.key?(:etag)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @usage_reports = args[:usage_reports] if args.key?(:usage_reports)
  @warnings = args[:warnings] if args.key?(:warnings)
end