Sha256: 5b7cf081bcf8ce0a535298a2b7227e558482cc66a936f4f7812555febf73bd0a
Contents?: true
Size: 622 Bytes
Versions: 4
Compression:
Stored size: 622 Bytes
Contents
module Fog module Volume class HuaweiCloud module Real private def _create_volume(data, options = {}) vanilla_options = [:snapshot_id, :imageRef, :volume_type, :source_volid, :availability_zone, :metadata] vanilla_options.select { |o| options[o] }.each do |key| data['volume'][key] = options[key] end request( :body => Fog::JSON.encode(data), :expects => [200, 202], :method => 'POST', :path => "volumes" ) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems