lib/fog/aliyun/requests/compute/delete_disk.rb in fog-aliyun-0.3.0 vs lib/fog/aliyun/requests/compute/delete_disk.rb in fog-aliyun-0.3.1

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + module Fog module Compute class Aliyun class Real # Delete a disk By the given id. @@ -12,16 +14,16 @@ # * body<~Hash>: # * 'RequestId'<~String> - Id of the request # # {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.201.106.DGkmH7#/pub/ecs/open-api/disk&deletedisk] def delete_disk(diskId) - action = 'DeleteDisk' + action = 'DeleteDisk' sigNonce = randonStr - time = Time.new.utc + time = Time.new.utc parameters = defalutParameters(action, sigNonce, time) - pathUrl = defaultAliyunUri(action, sigNonce, time) + pathUrl = defaultAliyunUri(action, sigNonce, time) parameters['DiskId'] = diskId pathUrl += '&DiskId=' pathUrl += diskId @@ -34,8 +36,8 @@ method: 'GET', path: pathUrl ) end end - end # aliyun - end # compute -end # fog + end + end +end