Class: AhoSdk::Account::RegenerateResource Private

Inherits:
Object
  • Object
show all
Defined in:
lib/aho_sdk/account.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Regenerate resource operations

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ RegenerateResource

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of RegenerateResource.



80
81
82
# File 'lib/aho_sdk/account.rb', line 80

def initialize(client)
  @client = client
end

Instance Method Details

#create(hashid:, idempotency_key: nil) ⇒ Hash

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Regenerate API key

Returns:

  • (Hash)


87
88
89
# File 'lib/aho_sdk/account.rb', line 87

def create(hashid:, idempotency_key: nil)
  @client.post("/v1/account/api_keys/#{hashid}/regenerate", idempotency_key: idempotency_key)
end