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

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

Defined Under Namespace

Classes: Warning

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UsageReports

Returns a new instance of UsageReports.



667
668
669
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 667

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

Instance Attribute Details

#etagString

ETag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


641
642
643
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 641

def etag
  @etag
end

#kindString

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

Returns:

  • (String)


647
648
649
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 647

def kind
  @kind
end

#next_page_tokenString

Token to specify next page. A report with multiple pages has a nextPageToken property in the response. For your follow-on requests getting all of the report's pages, enter the nextPageToken value in the pageToken query string. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


655
656
657
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 655

def next_page_token
  @next_page_token
end

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

Various application parameter records. Corresponds to the JSON property usageReports



660
661
662
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 660

def usage_reports
  @usage_reports
end

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

Warnings, if any. Corresponds to the JSON property warnings



665
666
667
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 665

def warnings
  @warnings
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



672
673
674
675
676
677
678
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 672

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