Class: WinRes::Nic

Inherits:
Object
  • Object
show all
Defined in:
lib/puppet/provider/ntx_create_vm/vm-win-res.rb

Instance Method Summary collapse

Constructor Details

#initialize(nic_type, kind, uuid) ⇒ Nic

Returns a new instance of Nic.



102
103
104
105
106
# File 'lib/puppet/provider/ntx_create_vm/vm-win-res.rb', line 102

def initialize(nic_type, kind, uuid)
    @nic_type  = nic_type;
    @kind = kind;
    @uuid = uuid;
end

Instance Method Details

#getNicObject



108
109
110
111
# File 'lib/puppet/provider/ntx_create_vm/vm-win-res.rb', line 108

def getNic()
    settings ={nic_type: @nic_type, subnet_reference:{kind: @kind, uuid: @uuid}}
    return settings;
end