mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Update newer providers to expose hp_service_type as was done in #2177.
This commit is contained in:
parent
4817f62f88
commit
00e7b5c7e0
5 changed files with 10 additions and 10 deletions
|
@ -5,7 +5,7 @@ module Fog
|
|||
class BlockStorageV2 < Fog::Service
|
||||
|
||||
requires :hp_access_key, :hp_secret_key, :hp_tenant_id, :hp_avl_zone
|
||||
recognizes :hp_auth_uri, :credentials
|
||||
recognizes :hp_auth_uri, :credentials, :hp_service_type
|
||||
recognizes :persistent, :connection_options
|
||||
recognizes :hp_use_upass_auth_style, :hp_auth_version, :user_agent
|
||||
|
||||
|
@ -100,7 +100,7 @@ module Fog
|
|||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||
auth_version = options[:hp_auth_version] || :v2
|
||||
### Pass the service name for block storage to the authentication call
|
||||
options[:hp_service_type] = "Block Storage"
|
||||
options[:hp_service_type] ||= "Block Storage"
|
||||
@hp_tenant_id = options[:hp_tenant_id]
|
||||
@hp_avl_zone = options[:hp_avl_zone]
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ module Fog
|
|||
class HPV2 < Fog::Service
|
||||
|
||||
requires :hp_secret_key, :hp_tenant_id, :hp_avl_zone
|
||||
recognizes :hp_auth_uri, :credentials
|
||||
recognizes :hp_auth_uri, :credentials, :hp_service_type
|
||||
recognizes :hp_use_upass_auth_style, :hp_auth_version, :user_agent
|
||||
recognizes :persistent, :connection_options
|
||||
recognizes :hp_access_key, :hp_account_id # :hp_account_id is deprecated use hp_access_key instead
|
||||
|
@ -249,7 +249,7 @@ module Fog
|
|||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||
auth_version = options[:hp_auth_version] || :v2
|
||||
### Pass the service name for compute via the options hash
|
||||
options[:hp_service_type] = "Compute"
|
||||
options[:hp_service_type] ||= "Compute"
|
||||
@hp_tenant_id = options[:hp_tenant_id]
|
||||
|
||||
### Make the authentication call
|
||||
|
|
|
@ -5,7 +5,7 @@ module Fog
|
|||
class DNS < Fog::Service
|
||||
|
||||
requires :hp_access_key, :hp_secret_key, :hp_tenant_id, :hp_avl_zone
|
||||
recognizes :hp_auth_uri, :credentials
|
||||
recognizes :hp_auth_uri, :credentials, :hp_service_type
|
||||
recognizes :persistent, :connection_options
|
||||
recognizes :hp_use_upass_auth_style, :hp_auth_version, :user_agent
|
||||
|
||||
|
@ -70,7 +70,7 @@ module Fog
|
|||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||
auth_version = options[:hp_auth_version] || :v2
|
||||
### Pass the service name for object storage to the authentication call
|
||||
options[:hp_service_type] = "DNS"
|
||||
options[:hp_service_type] ||= "DNS"
|
||||
@hp_tenant_id = options[:hp_tenant_id]
|
||||
@hp_avl_zone = options[:hp_avl_zone]
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ module Fog
|
|||
class LB < Fog::Service
|
||||
|
||||
requires :hp_access_key, :hp_secret_key, :hp_tenant_id, :hp_avl_zone
|
||||
recognizes :hp_auth_uri, :credentials
|
||||
recognizes :hp_auth_uri, :credentials, :hp_service_type
|
||||
recognizes :persistent, :connection_options
|
||||
recognizes :hp_use_upass_auth_style, :hp_auth_version, :user_agent
|
||||
|
||||
|
@ -106,7 +106,7 @@ module Fog
|
|||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||
auth_version = options[:hp_auth_version] || :v2
|
||||
### Pass the service name for object storage to the authentication call
|
||||
options[:hp_service_type] = "Load Balancer"
|
||||
options[:hp_service_type] ||= "Load Balancer"
|
||||
@hp_tenant_id = options[:hp_tenant_id]
|
||||
@hp_avl_zone = options[:hp_avl_zone]
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ module Fog
|
|||
class Network < Fog::Service
|
||||
|
||||
requires :hp_access_key, :hp_secret_key, :hp_tenant_id, :hp_avl_zone
|
||||
recognizes :hp_auth_uri, :credentials
|
||||
recognizes :hp_auth_uri, :credentials, :hp_service_type
|
||||
recognizes :persistent, :connection_options
|
||||
recognizes :hp_use_upass_auth_style, :hp_auth_version, :user_agent
|
||||
|
||||
|
@ -128,7 +128,7 @@ module Fog
|
|||
### Set an option to use the style of authentication desired; :v1 or :v2 (default)
|
||||
auth_version = options[:hp_auth_version] || :v2
|
||||
### Pass the service name for network to the authentication call
|
||||
options[:hp_service_type] = "Networking"
|
||||
options[:hp_service_type] ||= "Networking"
|
||||
@hp_tenant_id = options[:hp_tenant_id]
|
||||
@hp_avl_zone = options[:hp_avl_zone]
|
||||
|
||||
|
|
Loading…
Reference in a new issue