Module: Fog::K5::Shared

Included in:
Storage::K5::File, Storage::K5::Real, Storage::K5::Utils
Defined in:
lib/fog/k5/shared.rb

Constant Summary collapse

K5_URL_SCHEME =
'https'.freeze
K5_URL_SUFFIX =
'cloud.global.fujitsu.com'.freeze

Instance Method Summary collapse

Instance Method Details

#build_url(url_type:, region: nil) ⇒ Object



7
8
9
10
# File 'lib/fog/k5/shared.rb', line 7

def build_url(url_type:, region: nil)
  region ||= @k5_region
  "#{K5_URL_SCHEME}://#{url_type}.#{region}.#{K5_URL_SUFFIX}"
end

#refresh_auth_token_if_expiredObject



12
13
14
# File 'lib/fog/k5/shared.rb', line 12

def refresh_auth_token_if_expired
  refresh_auth_token if auth_token_expired?
end