Class: Google::Apis::DriveV2::About::QuotaBytesByService
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::About::QuotaBytesByService
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v2/classes.rb,
lib/google/apis/drive_v2/representations.rb,
lib/google/apis/drive_v2/representations.rb
Instance Attribute Summary collapse
-
#bytes_used ⇒ Fixnum
The storage quota bytes used by the service.
-
#service_name ⇒ String
The service's name, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ QuotaBytesByService
constructor
A new instance of QuotaBytesByService.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ QuotaBytesByService
Returns a new instance of QuotaBytesByService.
410 411 412 |
# File 'lib/google/apis/drive_v2/classes.rb', line 410 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bytes_used ⇒ Fixnum
The storage quota bytes used by the service.
Corresponds to the JSON property bytesUsed
403 404 405 |
# File 'lib/google/apis/drive_v2/classes.rb', line 403 def bytes_used @bytes_used end |
#service_name ⇒ String
The service's name, e.g. DRIVE, GMAIL, or PHOTOS.
Corresponds to the JSON property serviceName
408 409 410 |
# File 'lib/google/apis/drive_v2/classes.rb', line 408 def service_name @service_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
415 416 417 418 |
# File 'lib/google/apis/drive_v2/classes.rb', line 415 def update!(**args) @bytes_used = args[:bytes_used] if args.key?(:bytes_used) @service_name = args[:service_name] if args.key?(:service_name) end |