Class: Hpe3parSdk::FlashCache

Inherits:
Object
  • Object
show all
Defined in:
lib/Hpe3parSdk/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_hash) ⇒ FlashCache

Returns a new instance of FlashCache.



794
795
796
797
798
799
800
801
802
803
804
805
806
# File 'lib/Hpe3parSdk/models.rb', line 794

def initialize(object_hash)
  if object_hash == nil
    return
  end

  self.mode = object_hash['mode']

  self.size_gib = object_hash['sizeGiB']

  self.state = object_hash['state']

  self.used_size_gib = object_hash['usedSizeGiB']
end

Instance Attribute Details

#modeObject

type - Number 1: Simulator 2: Real

Encrypted CHAP secret of target.



780
781
782
# File 'lib/Hpe3parSdk/models.rb', line 780

def mode
  @mode
end

#size_gibObject

type - Number

The total size of the Flash Cache on the entire system. This might differ from the sizeGib input in the create Flash Cache request if the system has more than two nodes.



784
785
786
# File 'lib/Hpe3parSdk/models.rb', line 784

def size_gib
  @size_gib
end

#stateObject

type - Hpe3parSdk::CPGState

State of flash cache



788
789
790
# File 'lib/Hpe3parSdk/models.rb', line 788

def state
  @state
end

#used_size_gibObject

type - Number

The used size of the Flash Cache.



792
793
794
# File 'lib/Hpe3parSdk/models.rb', line 792

def used_size_gib
  @used_size_gib
end