Class: Google::Apis::DriveV2::About::QuotaBytesByService

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb

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

Returns a new instance of QuotaBytesByService



362
363
364
# File 'generated/google/apis/drive_v2/classes.rb', line 362

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

Instance Attribute Details

#bytes_usedFixnum

The storage quota bytes used by the service. Corresponds to the JSON property bytesUsed

Returns:

  • (Fixnum)


355
356
357
# File 'generated/google/apis/drive_v2/classes.rb', line 355

def bytes_used
  @bytes_used
end

#service_nameString

The service's name, e.g. DRIVE, GMAIL, or PHOTOS. Corresponds to the JSON property serviceName

Returns:

  • (String)


360
361
362
# File 'generated/google/apis/drive_v2/classes.rb', line 360

def service_name
  @service_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



367
368
369
370
# File 'generated/google/apis/drive_v2/classes.rb', line 367

def update!(**args)
  @bytes_used = args[:bytes_used] if args.key?(:bytes_used)
  @service_name = args[:service_name] if args.key?(:service_name)
end