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 ⇒ Object
readonly
Returns the value of attribute config.
-
#oci_config ⇒ Object
readonly
Returns the value of attribute oci_config.
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.
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
#config ⇒ Object (readonly)
Returns the value of attribute config.
25 26 27 |
# File 'lib/kitchen/driver/oci/api.rb', line 25 def config @config end |
#oci_config ⇒ Object (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
#blockstorage ⇒ Object
47 48 49 |
# File 'lib/kitchen/driver/oci/api.rb', line 47 def blockstorage generic_api(OCI::Core::BlockstorageClient) end |
#compute ⇒ Object
31 32 33 |
# File 'lib/kitchen/driver/oci/api.rb', line 31 def compute generic_api(OCI::Core::ComputeClient) end |
#dbaas ⇒ Object
39 40 41 |
# File 'lib/kitchen/driver/oci/api.rb', line 39 def dbaas generic_api(OCI::Database::DatabaseClient) end |
#identity ⇒ Object
43 44 45 |
# File 'lib/kitchen/driver/oci/api.rb', line 43 def identity generic_api(OCI::Identity::IdentityClient) end |
#network ⇒ Object
35 36 37 |
# File 'lib/kitchen/driver/oci/api.rb', line 35 def network generic_api(OCI::Core::VirtualNetworkClient) end |