app/models/api/assemblies.rb
# The list returns a list of assemblies, apps, services.
# we also need the spun vms, apps, services
# here is the  tree for us.
# You can have as many assembly inside assemblies.
# for the sake of a simple verbosology, we call plural assemblys as assembly_collection.
# There exists a need to cyclically dug inside as we only retrieve the ids of our assemblies structure.
# The following has 1 assembly and 2 components.
#  -- assemblies :
#      --assembly
#           ---components
#                   -- component1 : app
#                   -- component2 : service
# currently if there are no components then we consider it a plain VM.
# an additional field in assembly indicates if its a plain VM (INSTANCE) or not.
The list returns a list of assemblies, apps, services.
we also need the spun vms, apps, services
here is the  tree for us.
You can have as many assembly inside assemblies.
for the sake of a simple verbosology, we call plural assemblys as assembly_collection.
There exists a need to cyclically dug inside as we only retrieve the ids of our assemblies structure.
The following has 1 assembly and 2 components.
assemblies :
assembly
components
component1 : app
component2 : service
currently if there are no components then we consider it a plain VM.
an additional field in assembly indicates if its a plain VM (INSTANCE) or not.
The list returns a list of assemblies apps services . we also need the spun vms apps services here is the tree for us . You can have as many assembly inside assemblies . for the sake of a simple verbosology we call plural assemblys as assembly_collection . There exists a need to cyclically dug inside as we only retrieve the ids of our assemblies structure . The following has 1 assembly and 2 components . assemblies : assembly components component1 : app component2 : service currently if there are no components then we consider it a plain VM . an additional field in assembly indicates if its a plain VM ( INSTANCE ) or not .
def list(api_params, &_block)
            raw = api_request(ASSEMBLIES, LIST, api_params)
            dig_assembly(raw[:body], api_params) unless raw.nil?
            yield self  if block_given?
            self
        end
def list ( api_params , & _block ) raw = api_request ( ASSEMBLIES , LIST , api_params ) dig_assembly ( raw [ :body ] , api_params ) unless raw . nil? yield self if block_given? self end
The list returns a list of assemblies, apps, services.
The list returns a list of assemblies apps services .
api_params
_block