Gets the services object which will provide the ArcGIS Server's
        admin information about services and folders.
970881
def services(self):
        
        if self._resources is None:
            self.__init()
        if "services" in self._resources:
            url = self._url + "/services"
            return _services.Services(url=url,
                                      securityHandler=self._securityHandler,
                                      proxy_url=self._proxy_url,
                                      proxy_port=self._proxy_port,
                                      initialize=True)
        else:
            return None
1083950
def get_service(self, name):
    
    return services.get_service(self._get_resource_root(), name, self.name)
1184876
private static QName getServiceName(Server server) {
        QName serviceName;
        String bindingId = getBindingId(server);
        EndpointInfo eInfo = server.getEndpoint().getEndpointInfo();
        
        if (JAXRS_BINDING_ID.equals(bindingId)) {
            serviceName = eInfo.getName();
        } else {
            ServiceInfo serviceInfo = eInfo.getService();
            serviceName =  serviceInfo.getName();
        }
        return serviceName;
    }
1210323
protected static function retrieveServiceConfigurationFiles()
    {
        $virtualFile = self::$registry->getPath()->get('configuration').'.service.json';
        $caching     = self::$registry->getParameter('doozr.kernel.caching');
        $files       = null;
        $stale       = false;

        // Try to load service configurations from cache!
        if (true === $caching) {
            try {
                $files = self::$registry->getCache()->getItem($virtualFile)->get();

            } catch (Doozr_Cache_Service_Exception $exception) {
                // Intentionally left empty
            }
        }

        // Could be loaded from cache? otherwise lookup here (PERFORMANCE:IMPACT:HIGH:FILESYSTEM)
        if (null === $files) {
            $stale   = true;
            $pattern = self::$registry->getPath()->get('service').
                       '*'.DIRECTORY_SEPARATOR.'*'.DIRECTORY_SEPARATOR.'.config.json';
            $files   = glob($pattern, GLOB_NOSORT);
        }

        // Cache items found for reuse later
        if (true === $stale && true === $caching) {
            $cacheItem = new CacheItem($virtualFile);
            $cacheItem->set($files);

            self::$registry->getCache()->save($cacheItem);
        }

        // Return collection of service configuration files
        return $files;
    }
1003061
def get_fileservice_dir():
    
    conf = getattr(settings, 'FILESERVICE_CONFIG', {})
    dir = conf.get('store_dir', './fileservice_store')
    return os.path.normpath(dir) + os.sep
823959
def get_network_folder(dc_ref):
    '''
    
    '''
    dc_name = get_managed_object_name(dc_ref)
    log.trace('Retrieving network folder in datacenter \'%s\'', dc_name)
    service_instance = get_service_instance_from_managed_object(dc_ref)
    traversal_spec = vmodl.query.PropertyCollector.TraversalSpec(
        path='networkFolder',
        skip=False,
        type=vim.Datacenter)
    entries = get_mors_with_properties(service_instance,
                                       vim.Folder,
                                       container_ref=dc_ref,
                                       property_list=['name'],
                                       traversal_spec=traversal_spec)
    if not entries:
        raise salt.exceptions.VMwareObjectRetrievalError(
            'Network folder in datacenter \'{0}\' wasn\'t retrieved'
            ''.format(dc_name))
    return entries[0]['object']
1228421
@SuppressWarnings("unchecked")
  public ServiceT getService() {
    if (service == null) {
      service = serviceFactory.create((OptionsT) this);
    }
    return service;
  }
1165390
def getServiceLevel(self):
    """"""
    command = '$GE'
    settings = self.sendCommand(command)
    flags = int(settings[2], 16)
    return (flags & 0x0001) + 1
843446
def services(self):
        """"""
        ids = [ref['id'] for ref in self['services']]
        return [Service.fetch(id) for id in ids]
133816
public java.util.List<? extends com.google.appengine.v1.ServiceOrBuilder> 
      getServicesOrBuilderList() {
    return services_;
  }
780410
def get_api_services_by_name(self):
        """"""
        if not self.services_by_name:
            self.services_by_name = dict({s.get('name'): s for s in self.conf
                                          .get("api")
                                          .get("services")})
        return self.services_by_name
348945
def get_service_details(self, service_id: str) -> dict:
        
        # Raise an exception if we are not a manager
        if not self._manager:
            raise RuntimeError('Only the Swarm manager node can retrieve all'
                               ' the services details.')

        service = self._client.services.get(service_id)
        return service.attrs
907393
def services(self):
        
        if self._services is None:
            self._services = ServiceList(self)
        return self._services
963427
public function getDeploymentService()
    {
        if ($this->deploymentService == null) {
            $this->deploymentService = $this->newService('AppserverIo\Appserver\Core\Api\DeploymentService');
        }
        return $this->deploymentService;
    }
77349
def services_by_name(self):
        
        srvs = defaultdict(list)
        for i in self.services:
            srvs[i.__class__.__name__].append(i)
        return srvs
229091
def get_all():
    '''
    
    '''
    services = _get_services()

    ret = set()
    for service in services:
        ret.add(service['ServiceName'])

    return sorted(ret)
390097
def GetServices(self,filename):
        """"""
        objlist=[]
        for sobj in self.services:
            if sobj.KnowsFile(filename) :
                objlist.append(sobj)

        if len(objlist)==0:
            return None

        return objlist