Class: IBM::Cloud::SDK::BaseInstance

Inherits:
BaseVPC
  • Object
show all
Defined in:
lib/ibm/cloud/sdk/vpc/base_instance.rb

Overview

Container that encapsulates the VPC API.

Instance Attribute Summary

Attributes inherited from BaseVPC

#connection, #endpoint, #logger

Instance Method Summary collapse

Methods inherited from BaseVPC

#adhoc, #delete, #get, #initialize, #patch, #post, #put, #url

Constructor Details

This class inherits a constructor from IBM::Cloud::SDK::BaseVPC

Instance Method Details

#detailsObject



9
10
11
# File 'lib/ibm/cloud/sdk/vpc/base_instance.rb', line 9

def details
  get.hash_response
end

#removeObject



17
18
19
# File 'lib/ibm/cloud/sdk/vpc/base_instance.rb', line 17

def remove
  delete
end

#update(payload) ⇒ Object



13
14
15
# File 'lib/ibm/cloud/sdk/vpc/base_instance.rb', line 13

def update(payload)
  patch(payload)
end