Class: Kitchen::Driver::Oci::Api
- Inherits:
-
Object
- Object
- Kitchen::Driver::Oci::Api
- 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
-
#config ⇒ Kitchen::LazyHash
readonly
The config provided by the driver.
-
#oci_config ⇒ OCI::Config
readonly
The config used to authenticate to OCI.
Instance Method Summary collapse
- #blockstorage ⇒ Object
- #compute ⇒ Object
- #dbaas ⇒ Object
- #identity ⇒ Object
-
#initialize(oci_config, config) ⇒ Api
constructor
A new instance of Api.
- #network ⇒ Object
Constructor Details
#initialize(oci_config, config) ⇒ Api
Returns a new instance of Api.
25 26 27 28 |
# File 'lib/kitchen/driver/oci/api.rb', line 25 def initialize(oci_config, config) @oci_config = oci_config @config = config end |
Instance Attribute Details
#config ⇒ Kitchen::LazyHash (readonly)
The config provided by the driver
42 43 44 |
# File 'lib/kitchen/driver/oci/api.rb', line 42 def config @config end |
#oci_config ⇒ OCI::Config (readonly)
The config used to authenticate to OCI
35 36 37 |
# File 'lib/kitchen/driver/oci/api.rb', line 35 def oci_config @oci_config end |
Instance Method Details
#blockstorage ⇒ Object
60 61 62 |
# File 'lib/kitchen/driver/oci/api.rb', line 60 def blockstorage generic_api(OCI::Core::BlockstorageClient) end |
#compute ⇒ Object
44 45 46 |
# File 'lib/kitchen/driver/oci/api.rb', line 44 def compute generic_api(OCI::Core::ComputeClient) end |
#dbaas ⇒ Object
52 53 54 |
# File 'lib/kitchen/driver/oci/api.rb', line 52 def dbaas generic_api(OCI::Database::DatabaseClient) end |
#identity ⇒ Object
56 57 58 |
# File 'lib/kitchen/driver/oci/api.rb', line 56 def identity generic_api(OCI::Identity::IdentityClient) end |
#network ⇒ Object
48 49 50 |
# File 'lib/kitchen/driver/oci/api.rb', line 48 def network generic_api(OCI::Core::VirtualNetworkClient) end |