Class: Hpe3parSdk::ISCSIPortInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_hash) ⇒ ISCSIPortInfo

Returns a new instance of ISCSIPortInfo.



1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
# File 'lib/Hpe3parSdk/models.rb', line 1014

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

  self.ip_addr = object_hash['ipAddr']

  self.iscsi_name = object_hash['iSCSIName']

  self.netmask = object_hash['netmask']

  self.gateway = object_hash['gateway']

  self.mtu = object_hash['mtu']

  self.stgt = object_hash['stgt']

  self.isns_port = object_hash['iSNSPort']

  self.isns_addr = object_hash['iSNSAddr']

  self.rate = object_hash['rate']

  self.tpgt = object_hash['tpgt']

  self.vlans = object_hash['vlans']

end

Instance Attribute Details

#gatewayObject

type - String

IP address of the gateway.



984
985
986
# File 'lib/Hpe3parSdk/models.rb', line 984

def gateway
  @gateway
end

#ip_addrObject

type - String

iSCSI port only, not included in the JSON object for other ports.



972
973
974
# File 'lib/Hpe3parSdk/models.rb', line 972

def ip_addr
  @ip_addr
end

#iscsi_nameObject

type - String

iSCSI port only, not included in the JSON object for other ports.



976
977
978
# File 'lib/Hpe3parSdk/models.rb', line 976

def iscsi_name
  @iscsi_name
end

#isns_addrObject

type - String

iSNS server IP address.



1000
1001
1002
# File 'lib/Hpe3parSdk/models.rb', line 1000

def isns_addr
  @isns_addr
end

#isns_portObject

type - Number

TCP port number for the iSNS server.



996
997
998
# File 'lib/Hpe3parSdk/models.rb', line 996

def isns_port
  @isns_port
end

#mtuObject

type - Number

MTU size in bytes.



988
989
990
# File 'lib/Hpe3parSdk/models.rb', line 988

def mtu
  @mtu
end

#netmaskObject

type - String

Netmask for Ethernet port.



980
981
982
# File 'lib/Hpe3parSdk/models.rb', line 980

def netmask
  @netmask
end

#rateObject

type - String

Data transfer rate for the iSCSI port



1004
1005
1006
# File 'lib/Hpe3parSdk/models.rb', line 1004

def rate
  @rate
end

#stgtObject

type - Boolean

Send Targets Group Tag of the iSCSI target



992
993
994
# File 'lib/Hpe3parSdk/models.rb', line 992

def stgt
  @stgt
end

#tpgtObject

type - Number

Target portal group tag.



1008
1009
1010
# File 'lib/Hpe3parSdk/models.rb', line 1008

def tpgt
  @tpgt
end

#vlansObject

type - Boolean

Indicates whether the port supports VLANs.



1012
1013
1014
# File 'lib/Hpe3parSdk/models.rb', line 1012

def vlans
  @vlans
end