Class: Google::Apis::AdminReportsV1::UsageReport
- Inherits:
-
Object
- Object
- Google::Apis::AdminReportsV1::UsageReport
- 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
Instance Attribute Summary collapse
-
#date ⇒ String
Output only.
-
#entity ⇒ Google::Apis::AdminReportsV1::UsageReport::Entity
Output only.
-
#etag ⇒ String
ETag of the resource.
-
#kind ⇒ String
The type of API resource.
-
#parameters ⇒ Array<Google::Apis::AdminReportsV1::UsageReport::Parameter>
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UsageReport
constructor
A new instance of UsageReport.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ UsageReport
Returns a new instance of UsageReport.
1232 1233 1234 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1232 def initialize(**args) update!(**args) end |
Instance Attribute Details
#date ⇒ String
Output only. The date of the report request.
Corresponds to the JSON property date
1206 1207 1208 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1206 def date @date end |
#entity ⇒ Google::Apis::AdminReportsV1::UsageReport::Entity
Output only. Information about the type of the item.
Corresponds to the JSON property entity
1211 1212 1213 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1211 def entity @entity end |
#etag ⇒ String
ETag of the resource.
Corresponds to the JSON property etag
1216 1217 1218 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1216 def etag @etag end |
#kind ⇒ String
The type of API resource. For a usage report, the value is admin#reports#
usageReport.
Corresponds to the JSON property kind
1222 1223 1224 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1222 def kind @kind end |
#parameters ⇒ Array<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
1230 1231 1232 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1230 def parameters @parameters end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1237 1238 1239 1240 1241 1242 1243 |
# File 'lib/google/apis/admin_reports_v1/classes.rb', line 1237 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 |