Class: Hpe3parSdk::ISCSIPortInfo
- Inherits:
-
Object
- Object
- Hpe3parSdk::ISCSIPortInfo
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#gateway ⇒ Object
- type - String
-
IP address of the gateway.
-
#ip_addr ⇒ Object
- type - String
-
iSCSI port only, not included in the JSON object for other ports.
-
#iscsi_name ⇒ Object
- type - String
-
iSCSI port only, not included in the JSON object for other ports.
-
#isns_addr ⇒ Object
- type - String
-
iSNS server IP address.
-
#isns_port ⇒ Object
- type - Number
-
TCP port number for the iSNS server.
-
#mtu ⇒ Object
- type - Number
-
MTU size in bytes.
-
#netmask ⇒ Object
- type - String
-
Netmask for Ethernet port.
-
#rate ⇒ Object
- type - String
-
Data transfer rate for the iSCSI port.
-
#stgt ⇒ Object
- type - Boolean
-
Send Targets Group Tag of the iSCSI target.
-
#tpgt ⇒ Object
- type - Number
-
Target portal group tag.
-
#vlans ⇒ Object
- type - Boolean
-
Indicates whether the port supports VLANs.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ ISCSIPortInfo
constructor
A new instance of ISCSIPortInfo.
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
#gateway ⇒ Object
- type - String
-
IP address of the gateway.
984 985 986 |
# File 'lib/Hpe3parSdk/models.rb', line 984 def gateway @gateway end |
#ip_addr ⇒ Object
- 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_name ⇒ Object
- 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_addr ⇒ Object
- type - String
-
iSNS server IP address.
1000 1001 1002 |
# File 'lib/Hpe3parSdk/models.rb', line 1000 def isns_addr @isns_addr end |
#isns_port ⇒ Object
- 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 |
#mtu ⇒ Object
- type - Number
-
MTU size in bytes.
988 989 990 |
# File 'lib/Hpe3parSdk/models.rb', line 988 def mtu @mtu end |
#netmask ⇒ Object
- type - String
-
Netmask for Ethernet port.
980 981 982 |
# File 'lib/Hpe3parSdk/models.rb', line 980 def netmask @netmask end |
#rate ⇒ Object
- type - String
-
Data transfer rate for the iSCSI port
1004 1005 1006 |
# File 'lib/Hpe3parSdk/models.rb', line 1004 def rate @rate end |
#stgt ⇒ Object
- type - Boolean
-
Send Targets Group Tag of the iSCSI target
992 993 994 |
# File 'lib/Hpe3parSdk/models.rb', line 992 def stgt @stgt end |
#tpgt ⇒ Object
- type - Number
-
Target portal group tag.
1008 1009 1010 |
# File 'lib/Hpe3parSdk/models.rb', line 1008 def tpgt @tpgt end |
#vlans ⇒ Object
- type - Boolean
-
Indicates whether the port supports VLANs.
1012 1013 1014 |
# File 'lib/Hpe3parSdk/models.rb', line 1012 def vlans @vlans end |