Class: Google::Apis::ChromemanagementV1::GoogleChromeManagementV1StorageInfoDiskVolume

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chromemanagement_v1/classes.rb,
lib/google/apis/chromemanagement_v1/representations.rb,
lib/google/apis/chromemanagement_v1/representations.rb

Overview

Information for disk volumes

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChromeManagementV1StorageInfoDiskVolume

Returns a new instance of GoogleChromeManagementV1StorageInfoDiskVolume.



2046
2047
2048
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2046

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

Instance Attribute Details

#storage_free_bytesFixnum

Free storage space in bytes. Corresponds to the JSON property storageFreeBytes

Returns:

  • (Fixnum)


2034
2035
2036
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2034

def storage_free_bytes
  @storage_free_bytes
end

#storage_total_bytesFixnum

Total storage space in bytes. Corresponds to the JSON property storageTotalBytes

Returns:

  • (Fixnum)


2039
2040
2041
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2039

def storage_total_bytes
  @storage_total_bytes
end

#volume_idString

Disk volume id. Corresponds to the JSON property volumeId

Returns:

  • (String)


2044
2045
2046
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2044

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2051
2052
2053
2054
2055
# File 'lib/google/apis/chromemanagement_v1/classes.rb', line 2051

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