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.
690 691 692 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 690 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
683 684 685 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 683 def capacity_bytes @capacity_bytes end |
#used_bytes ⇒ Fixnum
Output only. The current usage value, in bytes.
Corresponds to the JSON property usedBytes
688 689 690 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 688 def used_bytes @used_bytes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
695 696 697 698 |
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 695 def update!(**args) @capacity_bytes = args[:capacity_bytes] if args.key?(:capacity_bytes) @used_bytes = args[:used_bytes] if args.key?(:used_bytes) end |