Class: Kitchen::Driver::Oci::Api

Inherits:
Object
  • Object
show all
Defined in:
lib/kitchen/driver/oci/api.rb

Overview

Api class that defines the various API classes used to interact with OCI

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(oci_config, config) ⇒ Api

Returns a new instance of Api.



26
27
28
29
# File 'lib/kitchen/driver/oci/api.rb', line 26

def initialize(oci_config, config)
  @oci_config = oci_config
  @config = config
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



25
26
27
# File 'lib/kitchen/driver/oci/api.rb', line 25

def config
  @config
end

#oci_configObject (readonly)

Returns the value of attribute oci_config.



25
26
27
# File 'lib/kitchen/driver/oci/api.rb', line 25

def oci_config
  @oci_config
end

Instance Method Details

#blockstorageObject



47
48
49
# File 'lib/kitchen/driver/oci/api.rb', line 47

def blockstorage
  generic_api(OCI::Core::BlockstorageClient)
end

#computeObject



31
32
33
# File 'lib/kitchen/driver/oci/api.rb', line 31

def compute
  generic_api(OCI::Core::ComputeClient)
end

#dbaasObject



39
40
41
# File 'lib/kitchen/driver/oci/api.rb', line 39

def dbaas
  generic_api(OCI::Database::DatabaseClient)
end

#identityObject



43
44
45
# File 'lib/kitchen/driver/oci/api.rb', line 43

def identity
  generic_api(OCI::Identity::IdentityClient)
end

#networkObject



35
36
37
# File 'lib/kitchen/driver/oci/api.rb', line 35

def network
  generic_api(OCI::Core::VirtualNetworkClient)
end