Class: Hpe3parSdk::Host
- Inherits:
-
Object
- Object
- Hpe3parSdk::Host
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
- type - Agent
-
Agent object.
-
#descriptors ⇒ Object
- type - Descriptors
-
An optional sub-object of the host object for creation and modification.
-
#domain ⇒ Object
- type - String
-
The domain or associated with this host.
-
#fcpaths ⇒ Object
- type - Array of FCPath
-
A host object query response can include an array of one or more FCPaths objects.
-
#id ⇒ Object
- type - Number
-
Specifies the ID of the host.
-
#initiator_chap_enabled ⇒ Object
- type - Boolean
-
Flag to determine whether or not the chap initiator is enabled.
-
#initiator_chap_name ⇒ Object
- type - String
-
Initiator Chap Name.
-
#initiator_encrypted_chap_secret ⇒ Object
- type - String
-
Encrypted CHAP secret of initiator.
-
#iscsi_paths ⇒ Object
- type - Array of SCSIPath
-
A host object query response can include an array of one or more iSCSIPaths objects.
-
#name ⇒ Object
- type - String
-
Specifies the name of the host.
-
#persona ⇒ Object
- type - Hpe3parSdk::HostPersona
-
ID of the persona to assigned to the host.
-
#target_chap_enabled ⇒ Object
- type - Boolean
-
Flag to determine whether or not the chap target is enabled.
-
#target_chap_name ⇒ Object
- type - String
-
Target chap name.
-
#target_encrypted_chap_secret ⇒ Object
- type - String
-
Encrypted CHAP secret of target.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ Host
constructor
A new instance of Host.
Constructor Details
#initialize(object_hash) ⇒ Host
Returns a new instance of Host.
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 |
# 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 |
Instance Attribute Details
#agent ⇒ Object
- type - Agent
-
Agent object
368 369 370 |
# File 'lib/Hpe3parSdk/models.rb', line 368 def agent @agent end |
#descriptors ⇒ Object
- type - Descriptors
-
An optional sub-object of the host object for creation and modification
364 365 366 |
# File 'lib/Hpe3parSdk/models.rb', line 364 def descriptors @descriptors end |
#domain ⇒ Object
- type - String
-
The domain or associated with this host.
360 361 362 |
# File 'lib/Hpe3parSdk/models.rb', line 360 def domain @domain end |
#fcpaths ⇒ Object
- type - Array of FCPath
-
A host object query response can include an array of one or more FCPaths objects
352 353 354 |
# File 'lib/Hpe3parSdk/models.rb', line 352 def fcpaths @fcpaths end |
#id ⇒ Object
- type - Number
-
Specifies the ID of the host.
340 341 342 |
# File 'lib/Hpe3parSdk/models.rb', line 340 def id @id end |
#initiator_chap_enabled ⇒ Object
- type - Boolean
-
Flag to determine whether or not the chap initiator is enabled.
376 377 378 |
# File 'lib/Hpe3parSdk/models.rb', line 376 def initiator_chap_enabled @initiator_chap_enabled end |
#initiator_chap_name ⇒ Object
- type - String
-
Initiator Chap Name
372 373 374 |
# File 'lib/Hpe3parSdk/models.rb', line 372 def initiator_chap_name @initiator_chap_name end |
#initiator_encrypted_chap_secret ⇒ Object
- type - String
-
Encrypted CHAP secret of initiator.
388 389 390 |
# File 'lib/Hpe3parSdk/models.rb', line 388 def initiator_encrypted_chap_secret @initiator_encrypted_chap_secret end |
#iscsi_paths ⇒ Object
- type - Array of SCSIPath
-
A host object query response can include an array of one or more iSCSIPaths objects.
356 357 358 |
# File 'lib/Hpe3parSdk/models.rb', line 356 def iscsi_paths @iscsi_paths end |
#name ⇒ Object
- type - String
-
Specifies the name of the host.
344 345 346 |
# File 'lib/Hpe3parSdk/models.rb', line 344 def name @name end |
#persona ⇒ Object
- type - Hpe3parSdk::HostPersona
-
ID of the persona to assigned to the host.
348 349 350 |
# File 'lib/Hpe3parSdk/models.rb', line 348 def persona @persona end |
#target_chap_enabled ⇒ Object
- type - Boolean
-
Flag to determine whether or not the chap target is enabled.
384 385 386 |
# File 'lib/Hpe3parSdk/models.rb', line 384 def target_chap_enabled @target_chap_enabled end |
#target_chap_name ⇒ Object
- type - String
-
Target chap name.
380 381 382 |
# File 'lib/Hpe3parSdk/models.rb', line 380 def target_chap_name @target_chap_name end |
#target_encrypted_chap_secret ⇒ Object
- type - String
-
Encrypted CHAP secret of target.
392 393 394 |
# File 'lib/Hpe3parSdk/models.rb', line 392 def target_encrypted_chap_secret @target_encrypted_chap_secret end |