lib/fog/aliyun/requests/compute/modify_vswitch.rb in fog-aliyun-0.3.0 vs lib/fog/aliyun/requests/compute/modify_vswitch.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
# {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.3.1.DGkmH7#/pub/ecs/open-api/vswitch&modifyvswitchattribute]
@@ -7,11 +9,11 @@
action = 'ModifyVSwitchAttribute'
sigNonce = randonStr
time = Time.new.utc
parameters = defalutParameters(action, sigNonce, time)
- pathUrl = defaultAliyunUri(action, sigNonce, time)
+ pathUrl = defaultAliyunUri(action, sigNonce, time)
parameters['VSwitchId'] = vSwitchId
pathUrl += '&VSwitchId='
pathUrl += URI.encode(vpcId, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
name = options[:name]
@@ -38,8 +40,8 @@
method: 'GET',
path: pathUrl
)
end
end
- end # aliyun
- end # compute
-end # fog
+ end
+ end
+end