Module: Nis::Endpoint::Namespace::Mosaic

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

Instance Method Summary collapse

Instance Method Details

#namespace_mosaic_definition_page(namespace:, id: nil, page_size: nil) ⇒ Array <Nis::Struct::MosaicDefinitionMetaDataPair>


5
6
7
8
9
10
11
12
13
# File 'lib/nis/endpoint/namespace/mosaic.rb', line 5

def namespace_mosaic_definition_page(namespace:, id: nil, page_size: nil)
  request!(:get, '/namespace/mosaic/definition/page',
    namespace: namespace,
    id: id,
    pageSize: page_size
  ) do |res|
    res[:data].map { |mdmdp| Nis::Struct::MosaicDefinitionMetaDataPair.build(mdmdp) }
  end
end