Class: IBM::Cloud::SDK::VPC::VPCInstance

Inherits:
IBM::Cloud::SDKHTTP::BaseInstance show all
Includes:
VpcHTTP
Defined in:
lib/ibm/cloud/sdk/vpc/http/vpc_instance.rb

Overview

Container that encapsulates the VPC API.

Instance Attribute Summary

Attributes included from IBM::Cloud::SDKHTTP::BaseHTTPMixin

#endpoint

Attributes inherited from IBM::Cloud::SDKHTTP::BaseInstance

#connection, #endpoint, #logger, #token

Instance Method Summary collapse

Methods included from VpcHTTP

#metadata

Methods included from IBM::Cloud::SDKHTTP::BaseHTTPMixin

#adhoc, #delete, #get, #metadata, #patch, #post, #put, #unchecked_response, #url

Methods inherited from IBM::Cloud::SDKHTTP::BaseInstance

#details, #initialize, #refresh, #remove, #update

Constructor Details

This class inherits a constructor from IBM::Cloud::SDKHTTP::BaseInstance

Instance Method Details

#crnString

Get the CRN for the resource.



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

def crn
  self[:crn]
end

#tagsEnumerator

Get the tags associated with this resource.



23
24
25
# File 'lib/ibm/cloud/sdk/vpc/http/vpc_instance.rb', line 23

def tags
  IBM::Cloud::SDK::Tags.new(@connection, @token, logger: @logger).attached_to(crn)
end