Class: Fog::AWS::EFS::FileSystem
- Inherits:
-
Model
- Object
- Model
- Fog::AWS::EFS::FileSystem
- Defined in:
- lib/fog/aws/models/efs/file_system.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/fog/aws/models/efs/file_system.rb', line 27 def destroy requires :identity service.delete_file_system(self.identity) true end |
#mount_targets ⇒ Object
22 23 24 25 |
# File 'lib/fog/aws/models/efs/file_system.rb', line 22 def mount_targets requires :identity service.mount_targets(:file_system_id => self.identity).all end |
#ready? ⇒ Boolean
18 19 20 |
# File 'lib/fog/aws/models/efs/file_system.rb', line 18 def ready? state == 'available' end |
#save ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/fog/aws/models/efs/file_system.rb', line 35 def save params = {} params.merge!(:performance_mode => self.performance_mode) if self.performance_mode params.merge!(:encrypted => self.encrypted) if self.encrypted params.merge!(:kms_key_id => self.kms_key_id) if self.kms_key_id merge_attributes(service.create_file_system(self.creation_token || Fog::Mock.random_hex(32), params).body) end |