Sha256: e6d84e318608f9c45f2bbbe2617e9a3405dd55ebb3821d8f402c6bf4e52919e8

Contents?: true

Size: 481 Bytes

Versions: 23

Compression:

Stored size: 481 Bytes

Contents

require "fog/brightbox/models/compute/api_client"

module Fog
  module Brightbox
    class Compute
      class ApiClients < Fog::Collection
        model Fog::Brightbox::Compute::ApiClient

        def all
          data = service.list_api_clients
          load(data)
        end

        def get(identifier = nil)
          data = service.get_api_client(identifier)
          new(data)
        rescue Excon::Errors::NotFound
          nil
        end
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
fog-brightbox-1.12.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.11.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.10.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.9.1 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.9.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.8.2 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.8.1 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.8.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.7.3 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.7.2 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.7.1 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.7.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.6.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.5.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.5.0.rc1 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.4.2 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.4.1 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.4.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.3.0 lib/fog/brightbox/models/compute/api_clients.rb
fog-brightbox-1.2.0 lib/fog/brightbox/models/compute/api_clients.rb