Sha256: 8461c1e8d438e7002ac48c4b21adac5a723c25ee122b2c01ebb562c8c62d2e3e

Contents?: true

Size: 591 Bytes

Versions: 52

Compression:

Stored size: 591 Bytes

Contents

require 'fog/aws/models/efs/mount_target'

module Fog
  module AWS
    class EFS
      class MountTargets < Fog::Collection
        attribute :file_system_id

        model Fog::AWS::EFS::MountTarget

        def all
          data = service.describe_mount_targets(:file_system_id => self.file_system_id).body["MountTargets"]
          load(data)
        end

        def get(identity)
          data = service.describe_mount_targets(:id => identity).body["MountTargets"].first
          new(data)
        rescue Fog::AWS::EFS::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

52 entries across 50 versions & 2 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.29.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.28.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.27.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.26.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.25.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.24.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.23.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.22.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.21.1 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.21.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.20.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.19.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.18.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.17.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.16.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.15.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.14.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.13.0 lib/fog/aws/models/efs/mount_targets.rb
fog-aws-3.12.0 lib/fog/aws/models/efs/mount_targets.rb