Gets the particular Image Streamer resource based on its name.

        Args:
            appliance_name:
                The Image Streamer resource name.

        Returns:
             dict: Image Streamer resource.
353370
def get_appliance_by_name(self, appliance_name):
        
        appliances = self.get_appliances()

        if appliances:
            for appliance in appliances:
                if appliance['name'] == appliance_name:
                    return appliance
        return None
568835
def get_service_plan_for_service(self, service_name):
        
        services = self.get_services()
        for service in services['resources']:
            if service['entity']['label'] == service_name:
                response = self.api.get(service['entity']['service_plans_url'])
                return response['resources']
840607
def get_name(self, r):
        """"""
        namer = ResourceNameAdapters[self.manager.resource_type.service]
        return namer(r)
457646
def get_smartplug_by_name(self, name):
        
        return next((plug for plug in self.smartplugs
                     if plug.name.lower() == name.lower()), None)
690470
def get_name(self):
        
        self.name = self.name or graceful_get(self.inspect(refresh=False), "Name")
        return self.name
1282334
def fetch(name, adapter_name = :default)
      adapter(adapter_name)[name] || adapter(:default)[name] ||
        raise(UnknownPluginError, name)
    end
301233
def getDatasetByName(self, name):
        
        if name not in self._datasetNameMap:
            raise exceptions.DatasetNameNotFoundException(name)
        return self._datasetNameMap[name]
975531
public static streamidentifier get(nitro_service service, String name) throws Exception{
		streamidentifier obj = new streamidentifier();
		obj.set_name(name);
		streamidentifier response = (streamidentifier) obj.get_resource(service);
		return response;
	}
1131087
def get_template(name):
    
    path = 'templates/' + name
    b_stream = pkg_resources.resource_stream('vr.imager', path)
    return b_stream.read().decode('utf-8')
811897
def _get(self, plugin_name):
        

        for p in self._plugins:
            if p.name == plugin_name:
                return p

        return None
714224
def get_class(self, name):
        
        for i in self.get_classes():
            if i.get_name() == name:
                return i
        return None
280952
def getLogger(name=None, **kwargs):
    
    adapter = _LOGGERS.get(name)
    if not adapter:
        # NOTE(jd) Keep using the `adapter' variable here because so it's not
        # collected by Python since _LOGGERS contains only a weakref
        adapter = KeywordArgumentAdapter(logging.getLogger(name), kwargs)
        _LOGGERS[name] = adapter
    return adapter
540821
def get(self, name=None):
        
        if name is None:
            return self._classes
        else:
            if name not in self._classes.keys():
                return None
            else:
                return self._classes[name]
852518
def getter(name, key=None):
  

  if not key:
    key = lambda x: x

  def wrapper(self):
    return key(getattr(self, name))
  wrapper.__name__ = wrapper.__qualname__ = name
  return property(wrapper)
227232
def get(self, object_name):
        
        if object_name in self:
            return Object(obj=self.container.get_object(object_name))
        return None
222538
def get_template_sources(self, template_name):
        
        if ':' not in template_name:
            self.reset(True)
            return

        app, template_path = template_name.split(':')
        if app:
            yield NamespaceOrigin(
                app_name=app,
                name='app_namespace:%s:%s' % (app, template_name),
                template_name=template_path,
                loader=self)
            return

        self.reset(False)
        for app in self.app_templates_dirs:
            file_path = self.get_app_template_path(app, template_path)
            if file_path in self._already_used:
                continue
            self._already_used.append(file_path)
            yield NamespaceOrigin(
                app_name=app,
                name='app_namespace:%s:%s' % (app, template_name),
                template_name=template_path,
                loader=self)
1353621
def avail_baremetal_images(conn=None, call=None):
    '''
    
    '''
    if call == 'action':
        raise SaltCloudSystemExit(
            'The avail_baremetal_images function must be called with '
            '-f or --function'
        )

    if not conn:
        conn = get_conn()

    ret = {}

    for appliance in conn.list_appliances(q='BAREMETAL'):
        ret[appliance['name']] = appliance

    return ret