class PlatformAPI::Key

Keys represent public SSH keys associated with an account and are used to authorize accounts as they are performing git operations.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 2068
def initialize(client)
  @client = client
end

Public Instance Methods

info(key_id_or_key_fingerprint) click to toggle source

Info for existing key.

@param key_id_or_key_fingerprint: unique identifier of this key or a unique identifying string based on contents

# File lib/platform-api/client.rb, line 2075
def info(key_id_or_key_fingerprint)
  @client.key.info(key_id_or_key_fingerprint)
end
list() click to toggle source

List existing keys.

# File lib/platform-api/client.rb, line 2080
def list()
  @client.key.list()
end