Class: Google::Apis::AdminDirectoryV1::ChromeOsDevice::DiskVolumeReport::VolumeInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/admin_directory_v1/classes.rb,
generated/google/apis/admin_directory_v1/representations.rb,
generated/google/apis/admin_directory_v1/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) ⇒ VolumeInfo

Returns a new instance of VolumeInfo.



1055
1056
1057
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1055

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

Instance Attribute Details

#storage_freeFixnum

Free disk space [in bytes] Corresponds to the JSON property storageFree

Returns:

  • (Fixnum)


1043
1044
1045
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1043

def storage_free
  @storage_free
end

#storage_totalFixnum

Total disk space [in bytes] Corresponds to the JSON property storageTotal

Returns:

  • (Fixnum)


1048
1049
1050
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1048

def storage_total
  @storage_total
end

#volume_idString

Volume id Corresponds to the JSON property volumeId

Returns:

  • (String)


1053
1054
1055
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1053

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1060
1061
1062
1063
1064
# File 'generated/google/apis/admin_directory_v1/classes.rb', line 1060

def update!(**args)
  @storage_free = args[:storage_free] if args.key?(:storage_free)
  @storage_total = args[:storage_total] if args.key?(:storage_total)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end