Sha256: 878ca2182a4d7ae299805e74aa431de20640d95ad397ae6bf5ccd6645e50ba5f
Contents?: true
Size: 888 Bytes
Versions: 1
Compression:
Stored size: 888 Bytes
Contents
module Kloudless # Account Keys can be used instead of API Keys to restrict access to a # specific account’s data. This is most useful for client-side requests. # # https://developers.kloudless.com/docs#account-keys class AccountKey < Model # Public: Returns Kloudless::Collection of AccountKey. Raises # Kloudless::Error. # # :account_ids - Array of account_ids to fetch keys for def self.list(account_ids:, **params) path = "/accounts/#{account_ids.join(',')}/keys" Kloudless::Collection.new(self, http.get(path, params: params)) end def self.retrieve(account_id:, key_id:, **params) path = "/accounts/#{account_id}/keys/#{key_id}" new(http.get(path, params: params)) end def self.delete(account_id:, key_id:) path = "/accounts/#{account_id}/keys/#{key_id}" new(http.delete(path)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kloudless-0.1.0 | lib/kloudless/account_key.rb |