class Hpe3parSdk::Host

Attributes

agent[RW]
type - Agent

Agent object

descriptors[RW]
type - Descriptors

An optional sub-object of the host object for creation and modification

domain[RW]
type - String

The domain or associated with this host.

fcpaths[RW]
type - Array of FCPath

A host object query response can include an array of one or more FCPaths objects

id[RW]
type - Number

Specifies the ID of the host.

initiator_chap_enabled[RW]
type - Boolean

Flag to determine whether or not the chap initiator is enabled.

initiator_chap_name[RW]
type - String

Initiator Chap Name

initiator_encrypted_chap_secret[RW]
type - String

Encrypted CHAP secret of initiator.

iscsi_paths[RW]
type - Array of SCSIPath

A host object query response can include an array of one or more iSCSIPaths objects.

name[RW]
type - String

Specifies the name of the host.

persona[RW]
type - Hpe3parSdk::HostPersona

ID of the persona to assigned to the host.

target_chap_enabled[RW]
type - Boolean

Flag to determine whether or not the chap target is enabled.

target_chap_name[RW]
type - String

Target chap name.

target_encrypted_chap_secret[RW]
type - String

Encrypted CHAP secret of target.

Public Class Methods

new(object_hash) click to toggle source
# File lib/Hpe3parSdk/models.rb, line 394
def initialize(object_hash)
  if object_hash == nil
    return
  end

  self.id = object_hash['id']

  self.name = object_hash['name']

  self.persona = object_hash['persona']

  self.fcpaths = []
  unless object_hash['FCPaths'].nil?
    object_hash['FCPaths'].each do |fc_path|
      self.fcpaths.push(FCPath.new(fc_path))
    end
  end

  self.iscsi_paths = []
  unless object_hash['iSCSIPaths'].nil?
    object_hash['iSCSIPaths'].each do |iscsi_path|
      self.iscsi_paths.push(SCSIPath.new(iscsi_path))
    end
  end

  self.domain = object_hash['domain']

  !object_hash['descriptors'].nil? ? self.descriptors = Descriptors.new(object_hash['descriptors']) : self.descriptors = nil

  !object_hash['agent'].nil? ? self.agent = Agent.new(object_hash['agent']) : self.agent = nil

  self.initiator_chap_name = object_hash['initiatorChapName']

  self.initiator_chap_enabled = object_hash['initiatorChapEnabled']

  self.target_chap_name = object_hash['targetChapName']

  self.target_chap_enabled = object_hash['targetChapEnabled']

  self.initiator_encrypted_chap_secret = object_hash['initiatorEncryptedChapSecret']

  self.target_encrypted_chap_secret = object_hash['targetEncryptedChapSecret']

end