1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/tests/requests/efs/helper.rb
Andrew Sullivan Cant 92fb7ef125 Add encryption to EFS FileSystem creation
These parameters are:
* encrypted
* kms_key_id

Both are optional, but encrypted MUST be true if kms_key_id is
specified.
2018-06-20 12:37:09 -04:00

44 lines
1.3 KiB
Ruby

class AWS
module EFS
module Formats
FILE_SYSTEM_FORMAT = {
"CreationTime" => Float,
"CreationToken" => String,
"FileSystemId" => String,
"LifeCycleState" => String,
"Name" => Fog::Nullable::String,
"NumberOfMountTargets" => Integer,
"OwnerId" => String,
"PerformanceMode" => String,
"Encrypted" => Fog::Nullable::Boolean,
"KmsKeyId" => Fog::Nullable::String,
"SizeInBytes" => {
"Timestamp" => Fog::Nullable::Float,
"Value" => Integer
}
}
MOUNT_TARGET_FORMAT = {
"FileSystemId" => String,
"IpAddress" => String,
"LifeCycleState" => String,
"MountTargetId" => String,
"NetworkInterfaceId" => String,
"OwnerId" => String,
"SubnetId" => String
}
DESCRIBE_FILE_SYSTEMS_RESULT = {
"FileSystems" => [FILE_SYSTEM_FORMAT]
}
DESCRIBE_MOUNT_TARGETS_RESULT = {
"MountTargets" => [MOUNT_TARGET_FORMAT]
}
DESCRIBE_MOUNT_TARGET_SECURITY_GROUPS_FORMAT = {
"SecurityGroups" => Array
}
end
end
end