Class: Tiktalik::Computing::VPSNetInterface

Inherits:
Object
  • Object
show all
Defined in:
lib/tiktalik/computing/vpsnetinterface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Object

#initialize

Constructor Details

This class inherits a constructor from Tiktalik::Object

Instance Attribute Details

#ipObject (readonly)

String



7
8
9
# File 'lib/tiktalik/computing/vpsnetinterface.rb', line 7

def ip
  @ip
end

#macObject (readonly)

String



7
8
9
# File 'lib/tiktalik/computing/vpsnetinterface.rb', line 7

def mac
  @mac
end

#networkObject (readonly)

String



7
8
9
# File 'lib/tiktalik/computing/vpsnetinterface.rb', line 7

def network
  @network
end

#seqObject (readonly)

String



7
8
9
# File 'lib/tiktalik/computing/vpsnetinterface.rb', line 7

def seq
  @seq
end

#uuidObject (readonly)

String



7
8
9
# File 'lib/tiktalik/computing/vpsnetinterface.rb', line 7

def uuid
  @uuid
end

Instance Method Details

#destroyObject

Remove virtual machine network interface.



14
15
16
17
# File 'lib/tiktalik/computing/vpsnetinterface.rb', line 14

def destroy
  request(:delete, "/computing/instance/#{@instance_uuid}/interface/#{@uuid}")
  true
end