Class: Google::Apis::AdminDirectoryV1::ByteUsage
- Inherits:
-
Object
- Object
- Google::Apis::AdminDirectoryV1::ByteUsage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/admin_directory_v1/classes.rb,
lib/google/apis/admin_directory_v1/representations.rb,
lib/google/apis/admin_directory_v1/representations.rb
Overview
Represents a data capacity with some amount of current usage in bytes.
Instance Attribute Summary collapse
-
#capacity_bytes ⇒ Fixnum
Output only.
-
#used_bytes ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ByteUsage
constructor
A new instance of ByteUsage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ByteUsage
Returns a new instance of ByteUsage.
715 716 717 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 715 def initialize(**args) update!(**args) end |
Instance Attribute Details
#capacity_bytes ⇒ Fixnum
Output only. The total capacity value, in bytes.
Corresponds to the JSON property capacityBytes
708 709 710 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 708 def capacity_bytes @capacity_bytes end |
#used_bytes ⇒ Fixnum
Output only. The current usage value, in bytes.
Corresponds to the JSON property usedBytes
713 714 715 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 713 def used_bytes @used_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
720 721 722 723 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 720 def update!(**args) @capacity_bytes = args[:capacity_bytes] if args.key?(:capacity_bytes) @used_bytes = args[:used_bytes] if args.key?(:used_bytes) end |