Class: SoracomCli::Operator

Inherits:
Thor
  • Object
show all
Defined in:
lib/soracom/cli.rb

Overview

Operator related commands

Instance Method Summary collapse

Instance Method Details

#delete_auth_keyObject



323
324
325
326
327
# File 'lib/soracom/cli.rb', line 323

def delete_auth_key
  client = Soracom::Client.new(profile:options.profile)
  data = client.delete_operator_auth_key(options.auth_key_id)
  puts JSON.pretty_generate(data)
end

#generate_auth_keyObject



315
316
317
318
319
# File 'lib/soracom/cli.rb', line 315

def generate_auth_key
  client = Soracom::Client.new(profile:options.profile)
  data = client.generate_operator_auth_key()
  puts JSON.pretty_generate(data)
end

#list_auth_keysObject



308
309
310
311
312
# File 'lib/soracom/cli.rb', line 308

def list_auth_keys
  client = Soracom::Client.new(profile:options.profile)
  data = client.list_operator_auth_keys()
  puts JSON.pretty_generate(data)
end