Module: Nis::Endpoint::Account::Namespace

Included in:
Nis
Defined in:
lib/nis/endpoint/account/namespace.rb

Instance Method Summary collapse

Instance Method Details

#account_namespace_page(address:, parent: nil, id: nil, page_size: nil) ⇒ Array <Nis::Struct::Namespace>

Parameters:

  • address (String)
  • parent (String) (defaults to: nil)
  • id (String) (defaults to: nil)
  • page_size (Integer) (defaults to: nil)

Returns:

See Also:



9
10
11
12
13
14
15
16
17
18
# File 'lib/nis/endpoint/account/namespace.rb', line 9

def (address:, parent: nil, id: nil, page_size: nil)
  request!(:get, '/account/namespace/page',
    address: address,
    parent: parent,
    id: id,
    pageSize: page_size
  ) do |res|
    res[:data].map { |ns| Nis::Struct::Namespace.build(ns) }
  end
end