def get_inner_objects(vim, base_obj, path, inner_type, properties_to_collect=None, all=False):
 client_factory = vim.client.factory
 base_type = base_obj._type
 traversal_spec = vutil.build_traversal_spec(client_factory, 'inner', base_type, path, False, [])
 object_spec = vutil.build_object_spec(client_factory, base_obj, [traversal_spec])
 property_spec = vutil.build_property_spec(client_factory, type_=inner_type, properties_to_collect=properties_to_collect, all_properties=all)
 property_filter_spec = vutil.build_property_filter_spec(client_factory, [property_spec], [object_spec])
 options = client_factory.create('ns0:RetrieveOptions')
 options.maxObjects = CONF.vmware.maximum_objects
 return vim.RetrievePropertiesEx(vim.service_content.propertyCollector, specSet=[property_filter_spec], options=options)

def get_inner_objects ( vim , base_obj , path , inner_type , properties_to_collect = None , all = False ) : client_factory = vim . client . factory base_type = base_obj . _type traversal_spec = vutil . build_traversal_spec ( client_factory , 'inner' , base_type , path , False , [ ] ) object_spec = vutil . build_object_spec ( client_factory , base_obj , [ traversal_spec ] ) property_spec = vutil . build_property_spec ( client_factory , type_ = inner_type , properties_to_collect = properties_to_collect , all_properties = all ) property_filter_spec = vutil . build_property_filter_spec ( client_factory , [ property_spec ] , [ object_spec ] ) options = client_factory . create ( 'ns0:RetrieveOptions' ) options . maxObjects = CONF . vmware . maximum_objects return vim . RetrievePropertiesEx ( vim . service_content . propertyCollector , specSet = [ property_filter_spec ] , options = options )
gets the list of inner objects of the type specified .