Class: Google::Apis::AdminDirectoryV1::ByteUsage

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_bytesFixnum

Output only. The total capacity value, in bytes. Corresponds to the JSON property capacityBytes

Returns:

  • (Fixnum)


683
684
685
# File 'lib/google/apis/admin_directory_v1/classes.rb', line 683

def capacity_bytes
  @capacity_bytes
end

#used_bytesFixnum

Output only. The current usage value, in bytes. Corresponds to the JSON property usedBytes

Returns:

  • (Fixnum)


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