Sha256: 7dfd0fc1d6747eb98bb218a8641ef99c79531ed83bffc3b4ad8e2d96d549645c
Contents?: true
Size: 1.37 KB
Versions: 2
Compression:
Stored size: 1.37 KB
Contents
# coding: utf-8 # # Author:: Dangleterre Michaël # © Copyright ArubaCloud. # # LICENSE: MIT (http://opensource.org/licenses/MIT) # require 'fog/arubacloud/service' require 'fog/arubacloud/error' require 'benchmark' module Fog module ArubaCloud class Compute class Real def create_shared_storage(data) body = { :SharedStorage => { :Quantity => data[:quantity], :SharedStorageName => data[:sharedstoragename], :SharedStorageProtocolType => data[:sharedstorageprotocoltype], } } unless data[:sharedstorageprotocoltype].include? 'ISCSI' body[:SharedStorage] << { :Value => data[:Value] } end self.request( body, 'SetEnqueuePurchaseSharedStorage', 'Error during Shared Storage creation.' ) end end # Real class Mock def create_shared_storage(data) response = Excon::Response.new response.status = 200 response.body = { 'ExceptionInfo' => nil, 'ResultCode' => 0, 'ResultMessage' => nil, 'Success' => true } response.body end # create_shared_storage end # Mock end # Compute end # ArubaCloud end # Fog
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fog-arubacloud-0.0.6 | lib/fog/arubacloud/compute/requests/create_shared_storage.rb |
fog-arubacloud-0.0.5 | lib/fog/arubacloud/compute/requests/create_shared_storage.rb |