Class: Hpe3parSdk::Policy

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_hash) ⇒ Policy

Returns a new instance of Policy.



1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
# File 'lib/Hpe3parSdk/models.rb', line 1285

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

  self.stale_ss = object_hash['staleSS']

  self.one_host = object_hash['oneHost']

  self.zero_detect = object_hash['zeroDetect']

  self.system = object_hash['system']

  self.caching = object_hash['caching']

  self.fsvc = object_hash['fsvc']

  self.host_dif = object_hash['hostDIF']

end

Instance Attribute Details

#cachingObject

type - Boolean

This is a read-only policy and cannot be set. true: Indicates that the storage system is enabled for write caching, read caching, and read ahead for the volume. false: Indicates that the storage system is disabled for write caching, read caching, and read ahead for the volume.



1271
1272
1273
# File 'lib/Hpe3parSdk/models.rb', line 1271

def caching
  @caching
end

#fsvcObject

type - Boolean

true: Stale snapshots. If there is no space for a copyon- write operation, the snapshot can go stale but the host write proceeds without an error. false: No stale snapshots. If there is no space for a copy-on-write operation, the host write fails.



1279
1280
1281
# File 'lib/Hpe3parSdk/models.rb', line 1279

def fsvc
  @fsvc
end

#host_difObject

type - Number

Type of host based DIF policy. - Hpe3parSdk::VolumeHostDIF



1283
1284
1285
# File 'lib/Hpe3parSdk/models.rb', line 1283

def host_dif
  @host_dif
end

#one_hostObject

type - Boolean

true: Indicates a volume is constrained to export to one host or one host cluster. false: Indicates a volume exported to multiple hosts for use by a cluster-aware application, or when port presents VLUNs are used



1249
1250
1251
# File 'lib/Hpe3parSdk/models.rb', line 1249

def one_host
  @one_host
end

#stale_ssObject

type - Boolean

true: Stale snapshots. If there is no space for a copyon- write operation, the snapshot can go stale but the host write proceeds without an error. false: No stale snapshots. If there is no space for a copy-on-write operation, the host write fails.



1241
1242
1243
# File 'lib/Hpe3parSdk/models.rb', line 1241

def stale_ss
  @stale_ss
end

#systemObject

type - Boolean

true: Special volume used by the system. false: Normal user volume.



1261
1262
1263
# File 'lib/Hpe3parSdk/models.rb', line 1261

def system
  @system
end

#zero_detectObject

type - Boolean

true: Indicates that the storage system scans for zeros in the incoming write data. false: Indicates that the storage system does not scan for zeros in the incoming write data.



1256
1257
1258
# File 'lib/Hpe3parSdk/models.rb', line 1256

def zero_detect
  @zero_detect
end