fog-aliyun 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +23 -10
- data/.rubocop.yml +31 -4
- data/.rubocop_todo.yml +83 -55
- data/Gemfile +2 -0
- data/Rakefile +2 -0
- data/bin/console +4 -3
- data/fog-aliyun.gemspec +19 -18
- data/lib/fog/aliyun.rb +4 -2
- data/lib/fog/aliyun/compute.rb +45 -43
- data/lib/fog/aliyun/models/compute/eip_address.rb +10 -8
- data/lib/fog/aliyun/models/compute/eip_addresses.rb +3 -3
- data/lib/fog/aliyun/models/compute/image.rb +23 -21
- data/lib/fog/aliyun/models/compute/images.rb +2 -0
- data/lib/fog/aliyun/models/compute/route_entry.rb +7 -5
- data/lib/fog/aliyun/models/compute/route_entrys.rb +2 -0
- data/lib/fog/aliyun/models/compute/route_table.rb +6 -4
- data/lib/fog/aliyun/models/compute/route_tables.rb +3 -3
- data/lib/fog/aliyun/models/compute/security_group.rb +7 -5
- data/lib/fog/aliyun/models/compute/security_group_rule.rb +15 -13
- data/lib/fog/aliyun/models/compute/security_group_rules.rb +2 -0
- data/lib/fog/aliyun/models/compute/security_groups.rb +2 -0
- data/lib/fog/aliyun/models/compute/server.rb +28 -26
- data/lib/fog/aliyun/models/compute/servers.rb +3 -3
- data/lib/fog/aliyun/models/compute/snapshot.rb +12 -10
- data/lib/fog/aliyun/models/compute/snapshots.rb +2 -0
- data/lib/fog/aliyun/models/compute/volume.rb +27 -25
- data/lib/fog/aliyun/models/compute/volumes.rb +2 -0
- data/lib/fog/aliyun/models/compute/vpc.rb +12 -10
- data/lib/fog/aliyun/models/compute/vpcs.rb +3 -3
- data/lib/fog/aliyun/models/compute/vrouter.rb +8 -6
- data/lib/fog/aliyun/models/compute/vrouters.rb +3 -3
- data/lib/fog/aliyun/models/compute/vswitch.rb +11 -9
- data/lib/fog/aliyun/models/compute/vswitches.rb +3 -3
- data/lib/fog/aliyun/models/storage/directories.rb +3 -1
- data/lib/fog/aliyun/models/storage/directory.rb +2 -0
- data/lib/fog/aliyun/models/storage/file.rb +18 -16
- data/lib/fog/aliyun/models/storage/files.rb +13 -19
- data/lib/fog/aliyun/requests/compute/allocate_eip_address.rb +5 -3
- data/lib/fog/aliyun/requests/compute/allocate_public_ip_address.rb +4 -2
- data/lib/fog/aliyun/requests/compute/associate_eip_address.rb +4 -2
- data/lib/fog/aliyun/requests/compute/attach_disk.rb +7 -5
- data/lib/fog/aliyun/requests/compute/create_disk.rb +15 -13
- data/lib/fog/aliyun/requests/compute/create_image.rb +3 -1
- data/lib/fog/aliyun/requests/compute/create_security_group.rb +11 -9
- data/lib/fog/aliyun/requests/compute/create_security_group_egress_ip_rule.rb +13 -11
- data/lib/fog/aliyun/requests/compute/create_security_group_egress_sg_rule.rb +12 -10
- data/lib/fog/aliyun/requests/compute/create_security_group_ip_rule.rb +13 -11
- data/lib/fog/aliyun/requests/compute/create_security_group_sg_rule.rb +12 -10
- data/lib/fog/aliyun/requests/compute/create_server.rb +11 -9
- data/lib/fog/aliyun/requests/compute/create_snapshot.rb +3 -1
- data/lib/fog/aliyun/requests/compute/create_vpc.rb +6 -4
- data/lib/fog/aliyun/requests/compute/create_vpn_connection.rb +8 -6
- data/lib/fog/aliyun/requests/compute/create_vpn_customergateway.rb +6 -6
- data/lib/fog/aliyun/requests/compute/create_vswitch.rb +6 -4
- data/lib/fog/aliyun/requests/compute/delete_disk.rb +8 -6
- data/lib/fog/aliyun/requests/compute/delete_image.rb +3 -1
- data/lib/fog/aliyun/requests/compute/delete_security_group.rb +7 -5
- data/lib/fog/aliyun/requests/compute/delete_security_group_egress_ip_rule.rb +13 -11
- data/lib/fog/aliyun/requests/compute/delete_security_group_egress_sg_rule.rb +12 -10
- data/lib/fog/aliyun/requests/compute/delete_security_group_ip_rule.rb +13 -11
- data/lib/fog/aliyun/requests/compute/delete_security_group_sg_rule.rb +12 -10
- data/lib/fog/aliyun/requests/compute/delete_server.rb +2 -0
- data/lib/fog/aliyun/requests/compute/delete_snapshot.rb +3 -1
- data/lib/fog/aliyun/requests/compute/delete_vpc.rb +6 -4
- data/lib/fog/aliyun/requests/compute/delete_vpn_connection.rb +6 -4
- data/lib/fog/aliyun/requests/compute/delete_vpn_customergateway.rb +6 -4
- data/lib/fog/aliyun/requests/compute/delete_vswitch.rb +6 -4
- data/lib/fog/aliyun/requests/compute/detach_disk.rb +6 -4
- data/lib/fog/aliyun/requests/compute/join_security_group.rb +2 -0
- data/lib/fog/aliyun/requests/compute/leave_security_group.rb +2 -0
- data/lib/fog/aliyun/requests/compute/list_disks.rb +5 -3
- data/lib/fog/aliyun/requests/compute/list_eip_addresses.rb +5 -3
- data/lib/fog/aliyun/requests/compute/list_images.rb +5 -3
- data/lib/fog/aliyun/requests/compute/list_route_tables.rb +6 -4
- data/lib/fog/aliyun/requests/compute/list_security_group_rules.rb +7 -5
- data/lib/fog/aliyun/requests/compute/list_security_groups.rb +10 -8
- data/lib/fog/aliyun/requests/compute/list_server_types.rb +8 -6
- data/lib/fog/aliyun/requests/compute/list_servers.rb +4 -2
- data/lib/fog/aliyun/requests/compute/list_snapshots.rb +4 -2
- data/lib/fog/aliyun/requests/compute/list_vpcs.rb +5 -3
- data/lib/fog/aliyun/requests/compute/list_vpn_connections.rb +49 -49
- data/lib/fog/aliyun/requests/compute/list_vpn_customergateways.rb +42 -43
- data/lib/fog/aliyun/requests/compute/list_vpn_gateways.rb +49 -49
- data/lib/fog/aliyun/requests/compute/list_vrouters.rb +6 -4
- data/lib/fog/aliyun/requests/compute/list_vswitchs.rb +6 -4
- data/lib/fog/aliyun/requests/compute/list_zones.rb +3 -1
- data/lib/fog/aliyun/requests/compute/modify_vpc.rb +7 -5
- data/lib/fog/aliyun/requests/compute/modify_vswitch.rb +6 -4
- data/lib/fog/aliyun/requests/compute/reboot_server.rb +2 -0
- data/lib/fog/aliyun/requests/compute/release_eip_address.rb +4 -2
- data/lib/fog/aliyun/requests/compute/start_server.rb +9 -7
- data/lib/fog/aliyun/requests/compute/stop_server.rb +9 -7
- data/lib/fog/aliyun/requests/compute/unassociate_eip_address.rb +4 -2
- data/lib/fog/aliyun/requests/storage/copy_object.rb +3 -2
- data/lib/fog/aliyun/requests/storage/delete_bucket.rb +3 -2
- data/lib/fog/aliyun/requests/storage/delete_container.rb +3 -2
- data/lib/fog/aliyun/requests/storage/delete_object.rb +4 -3
- data/lib/fog/aliyun/requests/storage/get_bucket.rb +6 -11
- data/lib/fog/aliyun/requests/storage/get_container.rb +3 -2
- data/lib/fog/aliyun/requests/storage/get_containers.rb +3 -2
- data/lib/fog/aliyun/requests/storage/get_object.rb +4 -3
- data/lib/fog/aliyun/requests/storage/get_object_http_url.rb +5 -4
- data/lib/fog/aliyun/requests/storage/get_object_https_url.rb +5 -4
- data/lib/fog/aliyun/requests/storage/head_object.rb +3 -2
- data/lib/fog/aliyun/requests/storage/list_buckets.rb +3 -2
- data/lib/fog/aliyun/requests/storage/list_objects.rb +5 -4
- data/lib/fog/aliyun/requests/storage/put_bucket.rb +3 -2
- data/lib/fog/aliyun/requests/storage/put_container.rb +3 -2
- data/lib/fog/aliyun/requests/storage/put_object.rb +12 -17
- data/lib/fog/aliyun/storage.rb +41 -52
- data/lib/fog/aliyun/version.rb +3 -1
- data/lib/fog/bin/aliyun.rb +10 -7
- metadata +37 -37
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -9,7 +11,7 @@ module Fog
|
|
9
11
|
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
parameters['VpcId'] = vpcId
|
15
17
|
pathUrl += '&VpcId='
|
@@ -49,6 +51,6 @@ module Fog
|
|
49
51
|
)
|
50
52
|
end
|
51
53
|
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -14,12 +16,12 @@ module Fog
|
|
14
16
|
#
|
15
17
|
# {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.201.106.DGkmH7#/pub/ecs/open-api/disk&deletedisk]
|
16
18
|
def delete_disk(diskId)
|
17
|
-
action
|
19
|
+
action = 'DeleteDisk'
|
18
20
|
sigNonce = randonStr
|
19
|
-
time
|
21
|
+
time = Time.new.utc
|
20
22
|
|
21
23
|
parameters = defalutParameters(action, sigNonce, time)
|
22
|
-
pathUrl
|
24
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
23
25
|
|
24
26
|
parameters['DiskId'] = diskId
|
25
27
|
pathUrl += '&DiskId='
|
@@ -36,6 +38,6 @@ module Fog
|
|
36
38
|
)
|
37
39
|
end
|
38
40
|
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -9,7 +11,7 @@ module Fog
|
|
9
11
|
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
parameters['ImageId'] = imageId
|
15
17
|
pathUrl += '&ImageId='
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -9,7 +11,7 @@ module Fog
|
|
9
11
|
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
if security_group_id
|
15
17
|
parameters['SecurityGroupId'] = security_group_id
|
@@ -45,7 +47,7 @@ module Fog
|
|
45
47
|
response.body = {}
|
46
48
|
response
|
47
49
|
end
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -1,15 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
4
6
|
class Real
|
5
7
|
# {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.3.1.DGkmH7#/pub/ecs/open-api/securitygroup&authorizesecuritygroup]
|
6
8
|
def delete_security_group_egress_ip_rule(securitygroup_id, destCidrIp, nicType, option = {})
|
7
|
-
action
|
9
|
+
action = 'RevokeSecurityGroupEgress'
|
8
10
|
sigNonce = randonStr
|
9
|
-
time
|
11
|
+
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
parameters['SecurityGroupId'] = securitygroup_id
|
15
17
|
pathUrl += '&SecurityGroupId='
|
@@ -18,31 +20,31 @@ module Fog
|
|
18
20
|
parameters['DestCidrIp'] = destCidrIp
|
19
21
|
pathUrl += '&DestCidrIp='
|
20
22
|
pathUrl += URI.encode(destCidrIp, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
|
21
|
-
nicType
|
23
|
+
nicType ||= 'intranet'
|
22
24
|
parameters['NicType'] = nicType
|
23
25
|
pathUrl += '&NicType='
|
24
26
|
pathUrl += nicType
|
25
27
|
|
26
28
|
portRange = option[:portRange]
|
27
|
-
portRange
|
29
|
+
portRange ||= '-1/-1'
|
28
30
|
parameters['PortRange'] = portRange
|
29
31
|
pathUrl += '&PortRange='
|
30
32
|
pathUrl += URI.encode(portRange, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
|
31
33
|
|
32
34
|
protocol = option[:protocol]
|
33
|
-
protocol
|
35
|
+
protocol ||= 'all'
|
34
36
|
parameters['IpProtocol'] = protocol
|
35
37
|
pathUrl += '&IpProtocol='
|
36
38
|
pathUrl += protocol
|
37
39
|
|
38
40
|
policy = option[:policy]
|
39
|
-
policy
|
41
|
+
policy ||= 'accept'
|
40
42
|
parameters['Policy'] = policy
|
41
43
|
pathUrl += '&Policy='
|
42
44
|
pathUrl += policy
|
43
45
|
|
44
46
|
priority = option[:priority]
|
45
|
-
priority
|
47
|
+
priority ||= '1'
|
46
48
|
parameters['Priority'] = priority
|
47
49
|
pathUrl += '&Priority='
|
48
50
|
pathUrl += priority
|
@@ -58,6 +60,6 @@ module Fog
|
|
58
60
|
)
|
59
61
|
end
|
60
62
|
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -1,15 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
4
6
|
class Real
|
5
7
|
# {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.3.1.DGkmH7#/pub/ecs/open-api/securitygroup&authorizesecuritygroup]
|
6
8
|
def delete_security_group_egress_sg_rule(securitygroup_id, dest_group_id, option = {})
|
7
|
-
action
|
9
|
+
action = 'RevokeSecurityGroupEgress'
|
8
10
|
sigNonce = randonStr
|
9
|
-
time
|
11
|
+
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
parameters['SecurityGroupId'] = securitygroup_id
|
15
17
|
pathUrl += '&SecurityGroupId='
|
@@ -25,13 +27,13 @@ module Fog
|
|
25
27
|
pathUrl += nicType
|
26
28
|
|
27
29
|
portRange = option[:portRange]
|
28
|
-
portRange
|
30
|
+
portRange ||= '-1/-1'
|
29
31
|
parameters['PortRange'] = portRange
|
30
32
|
pathUrl += '&PortRange='
|
31
33
|
pathUrl += URI.encode(portRange, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
|
32
34
|
|
33
35
|
protocol = option[:protocol]
|
34
|
-
protocol
|
36
|
+
protocol ||= 'all'
|
35
37
|
parameters['IpProtocol'] = protocol
|
36
38
|
pathUrl += '&IpProtocol='
|
37
39
|
pathUrl += protocol
|
@@ -44,13 +46,13 @@ module Fog
|
|
44
46
|
end
|
45
47
|
|
46
48
|
policy = option[:policy]
|
47
|
-
policy
|
49
|
+
policy ||= 'accept'
|
48
50
|
parameters['Policy'] = policy
|
49
51
|
pathUrl += '&Policy='
|
50
52
|
pathUrl += policy
|
51
53
|
|
52
54
|
priority = option[:priority]
|
53
|
-
priority
|
55
|
+
priority ||= '1'
|
54
56
|
parameters['Priority'] = priority
|
55
57
|
pathUrl += '&Priority='
|
56
58
|
pathUrl += priority
|
@@ -66,6 +68,6 @@ module Fog
|
|
66
68
|
)
|
67
69
|
end
|
68
70
|
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -1,15 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
4
6
|
class Real
|
5
7
|
def delete_security_group_ip_rule(securitygroup_id, sourceCidrIp, nicType, option = {})
|
6
8
|
# {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.3.1.DGkmH7#/pub/ecs/open-api/securitygroup&revokesecuritygroup]
|
7
|
-
action
|
9
|
+
action = 'RevokeSecurityGroup'
|
8
10
|
sigNonce = randonStr
|
9
|
-
time
|
11
|
+
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
parameters['SecurityGroupId'] = securitygroup_id
|
15
17
|
pathUrl += '&SecurityGroupId='
|
@@ -18,31 +20,31 @@ module Fog
|
|
18
20
|
parameters['SourceCidrIp'] = sourceCidrIp
|
19
21
|
pathUrl += '&SourceCidrIp='
|
20
22
|
pathUrl += URI.encode(sourceCidrIp, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
|
21
|
-
nicType
|
23
|
+
nicType ||= 'intranet'
|
22
24
|
parameters['NicType'] = nicType
|
23
25
|
pathUrl += '&NicType='
|
24
26
|
pathUrl += nicType
|
25
27
|
|
26
28
|
portRange = option[:portRange]
|
27
|
-
portRange
|
29
|
+
portRange ||= '-1/-1'
|
28
30
|
parameters['PortRange'] = portRange
|
29
31
|
pathUrl += '&PortRange='
|
30
32
|
pathUrl += URI.encode(portRange, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
|
31
33
|
|
32
34
|
protocol = option[:protocol]
|
33
|
-
protocol
|
35
|
+
protocol ||= 'all'
|
34
36
|
parameters['IpProtocol'] = protocol
|
35
37
|
pathUrl += '&IpProtocol='
|
36
38
|
pathUrl += protocol
|
37
39
|
|
38
40
|
policy = option[:policy]
|
39
|
-
policy
|
41
|
+
policy ||= 'accept'
|
40
42
|
parameters['Policy'] = policy
|
41
43
|
pathUrl += '&Policy='
|
42
44
|
pathUrl += policy
|
43
45
|
|
44
46
|
priority = option[:priority]
|
45
|
-
priority
|
47
|
+
priority ||= '1'
|
46
48
|
parameters['Priority'] = priority
|
47
49
|
pathUrl += '&Priority='
|
48
50
|
pathUrl += priority
|
@@ -58,6 +60,6 @@ module Fog
|
|
58
60
|
)
|
59
61
|
end
|
60
62
|
end
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -1,15 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
4
6
|
class Real
|
5
7
|
def delete_security_group_sg_rule(securitygroup_id, source_securitygroup_id, option = {})
|
6
8
|
# {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.3.1.DGkmH7#/pub/ecs/open-api/securitygroup&revokesecuritygroup]
|
7
|
-
action
|
9
|
+
action = 'RevokeSecurityGroup'
|
8
10
|
sigNonce = randonStr
|
9
|
-
time
|
11
|
+
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
parameters['SecurityGroupId'] = securitygroup_id
|
15
17
|
pathUrl += '&SecurityGroupId='
|
@@ -25,13 +27,13 @@ module Fog
|
|
25
27
|
pathUrl += nicType
|
26
28
|
|
27
29
|
portRange = option[:portRange]
|
28
|
-
portRange
|
30
|
+
portRange ||= '-1/-1'
|
29
31
|
parameters['PortRange'] = portRange
|
30
32
|
pathUrl += '&PortRange='
|
31
33
|
pathUrl += URI.encode(portRange, '/[^!*\'()\;?:@#&%=+$,{}[]<>`" ')
|
32
34
|
|
33
35
|
protocol = option[:protocol]
|
34
|
-
protocol
|
36
|
+
protocol ||= 'all'
|
35
37
|
parameters['IpProtocol'] = protocol
|
36
38
|
pathUrl += '&IpProtocol='
|
37
39
|
pathUrl += protocol
|
@@ -44,13 +46,13 @@ module Fog
|
|
44
46
|
end
|
45
47
|
|
46
48
|
policy = option[:policy]
|
47
|
-
policy
|
49
|
+
policy ||= 'accept'
|
48
50
|
parameters['Policy'] = policy
|
49
51
|
pathUrl += '&Policy='
|
50
52
|
pathUrl += policy
|
51
53
|
|
52
54
|
priority = option[:priority]
|
53
|
-
priority
|
55
|
+
priority ||= '1'
|
54
56
|
parameters['Priority'] = priority
|
55
57
|
pathUrl += '&Priority='
|
56
58
|
pathUrl += priority
|
@@ -66,6 +68,6 @@ module Fog
|
|
66
68
|
)
|
67
69
|
end
|
68
70
|
end
|
69
|
-
end
|
70
|
-
end
|
71
|
-
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -9,7 +11,7 @@ module Fog
|
|
9
11
|
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
parameters['SnapshotId'] = snapshotId
|
15
17
|
pathUrl += '&SnapshotId='
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -9,7 +11,7 @@ module Fog
|
|
9
11
|
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
if vpc_id
|
15
17
|
parameters['VpcId'] = vpc_id
|
@@ -30,6 +32,6 @@ module Fog
|
|
30
32
|
)
|
31
33
|
end
|
32
34
|
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -9,7 +11,7 @@ module Fog
|
|
9
11
|
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutVPCParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunVPCUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
if vpn_connectionid
|
15
17
|
parameters['VpnConnectionId'] = vpn_connectionid
|
@@ -30,6 +32,6 @@ module Fog
|
|
30
32
|
)
|
31
33
|
end
|
32
34
|
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Fog
|
2
4
|
module Compute
|
3
5
|
class Aliyun
|
@@ -9,7 +11,7 @@ module Fog
|
|
9
11
|
time = Time.new.utc
|
10
12
|
|
11
13
|
parameters = defalutVPCParameters(action, sigNonce, time)
|
12
|
-
pathUrl
|
14
|
+
pathUrl = defaultAliyunVPCUri(action, sigNonce, time)
|
13
15
|
|
14
16
|
if vpn_customergatewayid
|
15
17
|
parameters['CustomerGatewayId'] = vpn_customergatewayid
|
@@ -30,6 +32,6 @@ module Fog
|
|
30
32
|
)
|
31
33
|
end
|
32
34
|
end
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|