fog-aws 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -0
  3. data/CHANGELOG.md +29 -1
  4. data/Gemfile +6 -2
  5. data/gemfiles/Gemfile-edge +1 -1
  6. data/lib/fog/aws.rb +3 -1
  7. data/lib/fog/aws/efs.rb +177 -0
  8. data/lib/fog/aws/models/auto_scaling/group.rb +2 -0
  9. data/lib/fog/aws/models/compute/image.rb +2 -0
  10. data/lib/fog/aws/models/compute/images.rb +3 -1
  11. data/lib/fog/aws/models/compute/vpc.rb +4 -0
  12. data/lib/fog/aws/models/efs/file_system.rb +42 -0
  13. data/lib/fog/aws/models/efs/file_systems.rb +23 -0
  14. data/lib/fog/aws/models/efs/mount_target.rb +59 -0
  15. data/lib/fog/aws/models/efs/mount_targets.rb +25 -0
  16. data/lib/fog/aws/parsers/auto_scaling/describe_auto_scaling_groups.rb +8 -0
  17. data/lib/fog/aws/parsers/cloud_formation/describe_change_set.rb +1 -1
  18. data/lib/fog/aws/parsers/compute/describe_images.rb +3 -1
  19. data/lib/fog/aws/parsers/rds/modify_db_subnet_group.rb +24 -0
  20. data/lib/fog/aws/rds.rb +1 -1
  21. data/lib/fog/aws/requests/auto_scaling/create_auto_scaling_group.rb +1 -0
  22. data/lib/fog/aws/requests/auto_scaling/put_scaling_policy.rb +1 -1
  23. data/lib/fog/aws/requests/cloud_formation/create_change_set.rb +5 -0
  24. data/lib/fog/aws/requests/compute/describe_availability_zones.rb +4 -0
  25. data/lib/fog/aws/requests/compute/describe_images.rb +2 -0
  26. data/lib/fog/aws/requests/efs/create_file_system.rb +51 -0
  27. data/lib/fog/aws/requests/efs/create_mount_target.rb +69 -0
  28. data/lib/fog/aws/requests/efs/delete_file_system.rb +41 -0
  29. data/lib/fog/aws/requests/efs/delete_mount_target.rb +38 -0
  30. data/lib/fog/aws/requests/efs/describe_file_systems.rb +62 -0
  31. data/lib/fog/aws/requests/efs/describe_mount_target_security_groups.rb +34 -0
  32. data/lib/fog/aws/requests/efs/describe_mount_targets.rb +61 -0
  33. data/lib/fog/aws/requests/efs/modify_mount_target_security_groups.rb +39 -0
  34. data/lib/fog/aws/requests/rds/modify_db_subnet_group.rb +27 -0
  35. data/lib/fog/aws/requests/storage/delete_multiple_objects.rb +1 -1
  36. data/lib/fog/aws/requests/sts/assume_role.rb +25 -0
  37. data/lib/fog/aws/version.rb +1 -1
  38. data/tests/helper.rb +3 -2
  39. data/tests/models/efs/file_system_tests.rb +12 -0
  40. data/tests/models/efs/mount_target_tests.rb +43 -0
  41. data/tests/models/efs/mount_targets_tests.rb +30 -0
  42. data/tests/requests/auto_scaling/helper.rb +1 -0
  43. data/tests/requests/compute/image_tests.rb +3 -1
  44. data/tests/requests/efs/file_system_tests.rb +152 -0
  45. data/tests/requests/efs/helper.rb +42 -0
  46. data/tests/requests/storage/object_tests.rb +4 -0
  47. metadata +23 -2
@@ -0,0 +1,42 @@
1
+ class AWS
2
+ module EFS
3
+ module Formats
4
+ FILE_SYSTEM_FORMAT = {
5
+ "CreationTime" => Float,
6
+ "CreationToken" => String,
7
+ "FileSystemId" => String,
8
+ "LifeCycleState" => String,
9
+ "Name" => Fog::Nullable::String,
10
+ "NumberOfMountTargets" => Integer,
11
+ "OwnerId" => String,
12
+ "PerformanceMode" => String,
13
+ "SizeInBytes" => {
14
+ "Timestamp" => Fog::Nullable::Float,
15
+ "Value" => Integer
16
+ }
17
+ }
18
+
19
+ MOUNT_TARGET_FORMAT = {
20
+ "FileSystemId" => String,
21
+ "IpAddress" => String,
22
+ "LifeCycleState" => String,
23
+ "MountTargetId" => String,
24
+ "NetworkInterfaceId" => String,
25
+ "OwnerId" => String,
26
+ "SubnetId" => String
27
+ }
28
+
29
+ DESCRIBE_FILE_SYSTEMS_RESULT = {
30
+ "FileSystems" => [FILE_SYSTEM_FORMAT]
31
+ }
32
+
33
+ DESCRIBE_MOUNT_TARGETS_RESULT = {
34
+ "MountTargets" => [MOUNT_TARGET_FORMAT]
35
+ }
36
+
37
+ DESCRIBE_MOUNT_TARGET_SECURITY_GROUPS_FORMAT = {
38
+ "SecurityGroups" => Array
39
+ }
40
+ end
41
+ end
42
+ end
@@ -128,6 +128,10 @@ Shindo.tests('AWS::Storage | object requests', ['aws']) do
128
128
  Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fog_object', 'fog_other_object']).body
129
129
  end
130
130
 
131
+ tests("#delete_multiple_objects('#{@directory.identity}', 'fØg_öbjèct', UTF-8)").succeeds do
132
+ Fog::Storage[:aws].delete_multiple_objects(@directory.identity, ['fØg_öbjèct'])
133
+ end
134
+
131
135
  end
132
136
 
133
137
  fognonbucket = uniq_id('fognonbucket')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Lane
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-22 00:00:00.000000000 Z
12
+ date: 2016-11-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -158,6 +158,7 @@ files:
158
158
  - lib/fog/aws/dns.rb
159
159
  - lib/fog/aws/dynamodb.rb
160
160
  - lib/fog/aws/ecs.rb
161
+ - lib/fog/aws/efs.rb
161
162
  - lib/fog/aws/elasticache.rb
162
163
  - lib/fog/aws/elb.rb
163
164
  - lib/fog/aws/elb/policy_types.rb
@@ -252,6 +253,10 @@ files:
252
253
  - lib/fog/aws/models/dns/records.rb
253
254
  - lib/fog/aws/models/dns/zone.rb
254
255
  - lib/fog/aws/models/dns/zones.rb
256
+ - lib/fog/aws/models/efs/file_system.rb
257
+ - lib/fog/aws/models/efs/file_systems.rb
258
+ - lib/fog/aws/models/efs/mount_target.rb
259
+ - lib/fog/aws/models/efs/mount_targets.rb
255
260
  - lib/fog/aws/models/elasticache/cluster.rb
256
261
  - lib/fog/aws/models/elasticache/clusters.rb
257
262
  - lib/fog/aws/models/elasticache/parameter_group.rb
@@ -634,6 +639,7 @@ files:
634
639
  - lib/fog/aws/parsers/rds/modify_db_instance.rb
635
640
  - lib/fog/aws/parsers/rds/modify_db_parameter_group.rb
636
641
  - lib/fog/aws/parsers/rds/modify_db_snapshot_attribute.rb
642
+ - lib/fog/aws/parsers/rds/modify_db_subnet_group.rb
637
643
  - lib/fog/aws/parsers/rds/promote_read_replica.rb
638
644
  - lib/fog/aws/parsers/rds/reboot_db_instance.rb
639
645
  - lib/fog/aws/parsers/rds/restore_db_instance_from_db_snapshot.rb
@@ -1007,6 +1013,14 @@ files:
1007
1013
  - lib/fog/aws/requests/ecs/start_task.rb
1008
1014
  - lib/fog/aws/requests/ecs/stop_task.rb
1009
1015
  - lib/fog/aws/requests/ecs/update_service.rb
1016
+ - lib/fog/aws/requests/efs/create_file_system.rb
1017
+ - lib/fog/aws/requests/efs/create_mount_target.rb
1018
+ - lib/fog/aws/requests/efs/delete_file_system.rb
1019
+ - lib/fog/aws/requests/efs/delete_mount_target.rb
1020
+ - lib/fog/aws/requests/efs/describe_file_systems.rb
1021
+ - lib/fog/aws/requests/efs/describe_mount_target_security_groups.rb
1022
+ - lib/fog/aws/requests/efs/describe_mount_targets.rb
1023
+ - lib/fog/aws/requests/efs/modify_mount_target_security_groups.rb
1010
1024
  - lib/fog/aws/requests/elasticache/authorize_cache_security_group_ingress.rb
1011
1025
  - lib/fog/aws/requests/elasticache/create_cache_cluster.rb
1012
1026
  - lib/fog/aws/requests/elasticache/create_cache_parameter_group.rb
@@ -1236,6 +1250,7 @@ files:
1236
1250
  - lib/fog/aws/requests/rds/modify_db_instance.rb
1237
1251
  - lib/fog/aws/requests/rds/modify_db_parameter_group.rb
1238
1252
  - lib/fog/aws/requests/rds/modify_db_snapshot_attribute.rb
1253
+ - lib/fog/aws/requests/rds/modify_db_subnet_group.rb
1239
1254
  - lib/fog/aws/requests/rds/promote_read_replica.rb
1240
1255
  - lib/fog/aws/requests/rds/reboot_db_instance.rb
1241
1256
  - lib/fog/aws/requests/rds/remove_tags_from_resource.rb
@@ -1458,6 +1473,9 @@ files:
1458
1473
  - tests/models/dns/records_tests.rb
1459
1474
  - tests/models/dns/zone_tests.rb
1460
1475
  - tests/models/dns/zones_tests.rb
1476
+ - tests/models/efs/file_system_tests.rb
1477
+ - tests/models/efs/mount_target_tests.rb
1478
+ - tests/models/efs/mount_targets_tests.rb
1461
1479
  - tests/models/elasticache/cluster_tests.rb
1462
1480
  - tests/models/elasticache/parameter_groups_tests.rb
1463
1481
  - tests/models/elasticache/security_groups_tests.rb
@@ -1549,6 +1567,8 @@ files:
1549
1567
  - tests/requests/ecs/service_tests.rb
1550
1568
  - tests/requests/ecs/task_definitions_tests.rb
1551
1569
  - tests/requests/ecs/task_tests.rb
1570
+ - tests/requests/efs/file_system_tests.rb
1571
+ - tests/requests/efs/helper.rb
1552
1572
  - tests/requests/elasticache/cache_cluster_tests.rb
1553
1573
  - tests/requests/elasticache/describe_events.rb
1554
1574
  - tests/requests/elasticache/describe_reserved_cache_nodes.rb
@@ -1663,3 +1683,4 @@ signing_key:
1663
1683
  specification_version: 4
1664
1684
  summary: Module for the 'fog' gem to support Amazon Web Services.
1665
1685
  test_files: []
1686
+ has_rdoc: