Method: Fog::Identity::HuaweiCloud::V2::Mock#get_ec2_credential
- Defined in:
- lib/fog/identity/huaweicloud/v2/requests/get_ec2_credential.rb
#get_ec2_credential(user_id, access) ⇒ Object
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/fog/identity/huaweicloud/v2/requests/get_ec2_credential.rb', line 36 def get_ec2_credential(user_id, access) ec2_credential = data[:ec2_credentials][user_id][access] raise Fog::HuaweiCloud::Identity::NotFound unless ec2_credential response = Excon::Response.new response.status = 200 response.body = {'credential' => ec2_credential} response end |