Module: Fog::OpenStack::Core
- Included in:
- Baremetal::OpenStack::Real, Compute::OpenStack::Mock, Compute::OpenStack::Real, ContainerInfra::OpenStack::Real, DNS::OpenStack::V1::Real, DNS::OpenStack::V2::Real, Event::OpenStack::Real, Identity::OpenStack::Real, Identity::OpenStack::V3::Mock, Image::OpenStack::V1::Real, Image::OpenStack::V2::Real, Introspection::OpenStack::Mock, Introspection::OpenStack::Real, KeyManager::OpenStack::Real, Metering::OpenStack::Real, Metric::OpenStack::Real, Monitoring::OpenStack::Real, NFV::OpenStack::Mock, NFV::OpenStack::Real, Network::OpenStack::Mock, Network::OpenStack::Real, Planning::Real, Fog::Orchestration::OpenStack::Real, SharedFileSystem::OpenStack::Real, Storage::OpenStack::Real, Volume::OpenStack::V1::Real, Volume::OpenStack::V2::Real, Workflow::OpenStack::V2::Mock, Workflow::OpenStack::V2::Real
- Defined in:
- lib/fog/openstack/core.rb
Instance Attribute Summary collapse
-
#auth_token ⇒ Object
Returns the value of attribute auth_token.
-
#auth_token_expiration ⇒ Object
readonly
Returns the value of attribute auth_token_expiration.
-
#current_tenant ⇒ Object
readonly
Returns the value of attribute current_tenant.
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
-
#current_user_id ⇒ Object
readonly
Returns the value of attribute current_user_id.
-
#openstack_cache_ttl ⇒ Object
readonly
Returns the value of attribute openstack_cache_ttl.
-
#openstack_domain_id ⇒ Object
readonly
Returns the value of attribute openstack_domain_id.
-
#openstack_domain_name ⇒ Object
readonly
Returns the value of attribute openstack_domain_name.
-
#openstack_identity_api_version ⇒ Object
readonly
Returns the value of attribute openstack_identity_api_version.
-
#openstack_project_domain ⇒ Object
readonly
Returns the value of attribute openstack_project_domain.
-
#openstack_project_domain_id ⇒ Object
readonly
Returns the value of attribute openstack_project_domain_id.
-
#openstack_project_id ⇒ Object
readonly
Returns the value of attribute openstack_project_id.
-
#openstack_user_domain ⇒ Object
readonly
Returns the value of attribute openstack_user_domain.
-
#openstack_user_domain_id ⇒ Object
readonly
Returns the value of attribute openstack_user_domain_id.
-
#unscoped_token ⇒ Object
readonly
Returns the value of attribute unscoped_token.
Class Method Summary collapse
-
.not_found_class ⇒ Object
fallback.
Instance Method Summary collapse
Instance Attribute Details
#auth_token ⇒ Object
Returns the value of attribute auth_token.
4 5 6 |
# File 'lib/fog/openstack/core.rb', line 4 def auth_token @auth_token end |
#auth_token_expiration ⇒ Object (readonly)
Returns the value of attribute auth_token_expiration.
7 8 9 |
# File 'lib/fog/openstack/core.rb', line 7 def auth_token_expiration @auth_token_expiration end |
#current_tenant ⇒ Object (readonly)
Returns the value of attribute current_tenant.
10 11 12 |
# File 'lib/fog/openstack/core.rb', line 10 def current_tenant @current_tenant end |
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
8 9 10 |
# File 'lib/fog/openstack/core.rb', line 8 def current_user @current_user end |
#current_user_id ⇒ Object (readonly)
Returns the value of attribute current_user_id.
9 10 11 |
# File 'lib/fog/openstack/core.rb', line 9 def current_user_id @current_user_id end |
#openstack_cache_ttl ⇒ Object (readonly)
Returns the value of attribute openstack_cache_ttl.
6 7 8 |
# File 'lib/fog/openstack/core.rb', line 6 def openstack_cache_ttl @openstack_cache_ttl end |
#openstack_domain_id ⇒ Object (readonly)
Returns the value of attribute openstack_domain_id.
14 15 16 |
# File 'lib/fog/openstack/core.rb', line 14 def openstack_domain_id @openstack_domain_id end |
#openstack_domain_name ⇒ Object (readonly)
Returns the value of attribute openstack_domain_name.
11 12 13 |
# File 'lib/fog/openstack/core.rb', line 11 def openstack_domain_name @openstack_domain_name end |
#openstack_identity_api_version ⇒ Object (readonly)
Returns the value of attribute openstack_identity_api_version.
18 19 20 |
# File 'lib/fog/openstack/core.rb', line 18 def openstack_identity_api_version @openstack_identity_api_version end |
#openstack_project_domain ⇒ Object (readonly)
Returns the value of attribute openstack_project_domain.
13 14 15 |
# File 'lib/fog/openstack/core.rb', line 13 def openstack_project_domain @openstack_project_domain end |
#openstack_project_domain_id ⇒ Object (readonly)
Returns the value of attribute openstack_project_domain_id.
17 18 19 |
# File 'lib/fog/openstack/core.rb', line 17 def openstack_project_domain_id @openstack_project_domain_id end |
#openstack_project_id ⇒ Object (readonly)
Returns the value of attribute openstack_project_id.
16 17 18 |
# File 'lib/fog/openstack/core.rb', line 16 def openstack_project_id @openstack_project_id end |
#openstack_user_domain ⇒ Object (readonly)
Returns the value of attribute openstack_user_domain.
12 13 14 |
# File 'lib/fog/openstack/core.rb', line 12 def openstack_user_domain @openstack_user_domain end |
#openstack_user_domain_id ⇒ Object (readonly)
Returns the value of attribute openstack_user_domain_id.
15 16 17 |
# File 'lib/fog/openstack/core.rb', line 15 def openstack_user_domain_id @openstack_user_domain_id end |
#unscoped_token ⇒ Object (readonly)
Returns the value of attribute unscoped_token.
5 6 7 |
# File 'lib/fog/openstack/core.rb', line 5 def unscoped_token @unscoped_token end |
Class Method Details
Instance Method Details
#credentials ⇒ Object
25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/fog/openstack/core.rb', line 25 def credentials = { :provider => 'openstack', :openstack_auth_url => @openstack_auth_uri.to_s, :openstack_auth_token => @auth_token, :current_user => @current_user, :current_user_id => @current_user_id, :current_tenant => @current_tenant, :unscoped_token => @unscoped_token } .merge end |
#initialize(options = {}) ⇒ Object
42 43 44 45 46 |
# File 'lib/fog/openstack/core.rb', line 42 def initialize( = {}) setup() authenticate @connection = Fog::Core::Connection.new(@openstack_management_url, @persistent, @connection_options) end |
#reload ⇒ Object
38 39 40 |
# File 'lib/fog/openstack/core.rb', line 38 def reload @connection.reset end |