Class: OvirtSDK4::NfsProfileDetail
- Inherits:
-
EntityProfileDetail
- Object
- Struct
- EntityProfileDetail
- OvirtSDK4::NfsProfileDetail
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (NfsProfileDetail) initialize(opts = {})
constructor
Creates a new instance of the NfsProfileDetail class.
-
- (String) nfs_server_ip
Returns the value of the
nfs_server_ip
attribute. -
- (Object) nfs_server_ip=(value)
Sets the value of the
nfs_server_ip
attribute. -
- (Array<ProfileDetail>) profile_details
Returns the value of the
profile_details
attribute. -
- (Object) profile_details=(list)
Sets the value of the
profile_details
attribute.
Methods included from Type
Constructor Details
- (NfsProfileDetail) initialize(opts = {})
Creates a new instance of the OvirtSDK4::NfsProfileDetail class.
8012 8013 8014 8015 8016 |
# File 'lib/ovirtsdk4/types.rb', line 8012 def initialize(opts = {}) super(opts) self.nfs_server_ip = opts[:nfs_server_ip] self.profile_details = opts[:profile_details] end |
Instance Method Details
- (String) nfs_server_ip
Returns the value of the nfs_server_ip
attribute.
7962 7963 7964 |
# File 'lib/ovirtsdk4/types.rb', line 7962 def nfs_server_ip return @nfs_server_ip end |
- (Object) nfs_server_ip=(value)
Sets the value of the nfs_server_ip
attribute.
7971 7972 7973 |
# File 'lib/ovirtsdk4/types.rb', line 7971 def nfs_server_ip=(value) @nfs_server_ip = value end |
- (Array<ProfileDetail>) profile_details
Returns the value of the profile_details
attribute.
7980 7981 7982 |
# File 'lib/ovirtsdk4/types.rb', line 7980 def profile_details return @profile_details end |
- (Object) profile_details=(list)
Sets the value of the profile_details
attribute.
7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 |
# File 'lib/ovirtsdk4/types.rb', line 7988 def profile_details=(list) if list.class == Array list = List.new(list) list.each_with_index do |value, index| if value.is_a?(Hash) list[index] = ProfileDetail.new(value) end end end @profile_details = list end |