Invokes the /system/describeProjects API method.

    For more info, see: https://wiki.dnanexus.com/API-Specification-v1.0.0/System-Methods#API-method:-/system/describeProjects
178838
def system_describe_projects(input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/system/describeProjects', input_params, always_retry=always_retry, **kwargs)
1024915
def invoke( *opts )
      #defaults
      config = {
        # Checks ENV for maven home, otherwise defaults /usr/share/maven
        # XXX: Reuse Eng.getMavenHome?
        :maven_home => ENV['maven.home'] || ENV['MAVEN_HOME'] || '/usr/share/maven',
        :local_repo => File.expand_path('~/.m2/repository')
      }

      if opts.last.is_a? Hash
        config = config.merge( opts.pop )
      end
      goals = opts

      pom = @project.getPomFile().getAbsolutePath()

      invoker = Naether::Java.create("com.tobedevoured.naether.maven.Invoker", config[:local_repo], config[:maven_home] )

      java_list = Naether::Java.convert_to_java_list(goals)
      if Naether.platform == 'java'
        invoker.execute( pom, java_list )
      else
        invoker._invoke('execute', 'Ljava.lang.String;Ljava.util.List;', pom, java_list)
      end
    end
835002
private Object invokeImpl(Object thiz, String name, Object... args)
            throws ScriptException, NoSuchMethodException {
        if (name == null) {
            throw new NullPointerException("method name is null");
        }

        try {
            if (thiz != null) {
                return InvokerHelper.invokeMethod(thiz, name, args);
            } else {
                return callGlobal(name, args);
            }
        } catch (MissingMethodException mme) {
            throw new NoSuchMethodException(mme.getMessage());
        } catch (Exception e) {
            throw new ScriptException(e);
        }
    }
1003835
def prepare_and_invoke_api_call(path, options = {})
      api_call = prepare_api_call(path, options)
      data = invoke_api_call(api_call)

      parsed_data = case options[:format]
        when 'json' then JSON.parse(data)
        when 'xml' then REXML::Document.new(data)
        else JSON.parse(data) rescue REXML::Document.new(data) rescue data
      end
      RubyDesk.logger.info "Parsed data: #{parsed_data.inspect}"
      return parsed_data
    end
1188312
function executeCommand(parameters) {
    // If a name has been provided, we create the project directory
    const specFilePath = path.join(process.cwd(), plugin.config.apisPath, parameters.apiIdentifier);
    return mkdirpAsync(specFilePath)
    .then(() => {
      const spec = {
        swagger: '2.0',
        info: {
          title: parameters.title,
          description: parameters.desc
        },
        schemes: ['https'],
        host: 'API_ID.execute-api.REGION.amazonaws.com',
        consume: parameters.consume,
        produce: parameters.produce,
        paths: {},
        definitions: {}
      };
      return fs.writeFileAsync(specFilePath + path.sep + 'spec.json', JSON.stringify(spec, null, 2));
    })
    .then(() => {
      const msg = '\n  The API "' + icli.format.info(parameters.apiIdentifier) + '" has been created\n\n'
              + '  Its Swagger specification is available in ' + icli.format.info(specFilePath + path.sep + 'spec.json') + '\n'
              + '  You can inspect it using the command ' + icli.format.cmd('myrmex inspect-api ' + parameters.apiIdentifier) + '\n';
      icli.print(msg);
    });
  }
1309006
def database_describe(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/describe' % object_id, input_params, always_retry=always_retry, **kwargs)
495198
def describe_api_method_response(restApiId, resourcePath, httpMethod, statusCode,
                                 region=None, key=None, keyid=None, profile=None):
    '''
    

    '''
    try:
        resource = describe_api_resource(restApiId, resourcePath, region=region,
                                         key=key, keyid=keyid, profile=profile).get('resource')
        if resource:
            conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
            response = conn.get_method_response(restApiId=restApiId, resourceId=resource['id'],
                                                httpMethod=httpMethod, statusCode=str(statusCode))  # future lint: disable=blacklisted-function
            return {'response': _convert_datetime_str(response)}
        return {'error': 'no such resource'}
    except ClientError as e:
        return {'error': __utils__['boto3.get_error'](e)}
192778
public static Description describeChild(Object target, Object child) {
        Object runner = getRunnerForTarget(target);
        return invoke(runner, "describeChild", child);
    }
1142092
private void invokeFactoryMethod(MethodDefinition read, Map<Short, LocalVariableDefinition> structData, LocalVariableDefinition instance)
    {
        if (metadata.getBuilderMethod().isPresent()) {
            ThriftMethodInjection builderMethod = metadata.getBuilderMethod().get();
            read.loadVariable(instance);

            // push parameters on stack
            for (ThriftParameterInjection parameter : builderMethod.getParameters()) {
                read.loadVariable(structData.get(parameter.getId()));
            }

            // invoke the method
            read.invokeVirtual(builderMethod.getMethod())
                    .storeVariable(instance);
        }
    }
19280
public function describe($object_name = null, $options = [])
    {
        $url = sprintf('%s/sobjects', $this->getBaseUrl());
        
        if ( ! empty($object_name)) {
            $url .= sprintf('/%s/describe', $object_name);
        }

        return $this->request($url, $options);
    }
927868
public function describe($pUri = null, $pOnlyRoutes = false)
    {
        $definition = array();

        if (!$pOnlyRoutes) {
            $definition['parameters'] = array(
                '_method' => array('description' => 'Can be used as HTTP METHOD if the client does not support HTTP methods.', 'type' => 'string',
                                   'values' => 'GET, POST, PUT, DELETE, HEAD, OPTIONS, PATCH'),
                '_suppress_status_code' => array('description' => 'Suppress the HTTP status code.', 'type' => 'boolean', 'values' => '1, 0'),
                '_format' => array('description' => 'Format of generated data. Can be added as suffix .json .xml', 'type' => 'string', 'values' => 'json, xml'),
            );
        }

        $definition['controller'] = array(
            'entryPoint' => $this->getTriggerUrl()
        );

        foreach ($this->routes as $routeUri => $routeMethods) {

            $matches = array();
            if (!$pUri || ($pUri && preg_match('|^'.$routeUri.'$|', $pUri, $matches))) {

                if ($matches) {
                    array_shift($matches);
                }
                $def = array();
                $def['uri'] = $this->getTriggerUrl().'/'.$routeUri;

                foreach ($routeMethods as $method => $phpMethod) {

                    if (is_string($phpMethod)) {
                        $ref = new \ReflectionClass($this->controller);
                        $refMethod = $ref->getMethod($phpMethod);
                    } else {
                        $refMethod = new \ReflectionFunction($phpMethod);
                    }

                    $def['methods'][strtoupper($method)] = $this->getMethodMetaData($refMethod, $matches);

                }
                $definition['controller']['routes'][$routeUri] = $def;
            }
        }

        if (!$pUri) {
            foreach ($this->controllers as $controller) {
                $definition['subController'][$controller->getTriggerUrl()] = $controller->describe(false, true);
            }
        }

        return $definition;
    }
513282
@Override
    public String describe()
    {
        Serializable xaResInfo = getXAResourceInfo();
        if (xaResInfo == null)
        {
            return null;
        }
        else if (xaResInfo instanceof DirectEnlistXAResourceInfo)
        {
            return ((DirectEnlistXAResourceInfo) xaResInfo).getXAResource().toString();
        }
        else
        {
            return xaResInfo.toString();
        }
    }
1132278
private void createCommandDescription(Description descAnnotation) {
        setName(descAnnotation.name());
        setSummary(descAnnotation.summary());
        setMethods(descAnnotation.methods());
        setURI(descAnnotation.uri());
        setInputEntity(descAnnotation.inputEntity());
        setOutputEntity(descAnnotation.outputEntity());
        setPrivileged(descAnnotation.privileged());
        setVisibility(descAnnotation.visible());
    }
34515
def system_describe_data_objects(input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/system/describeDataObjects', input_params, always_retry=always_retry, **kwargs)
820702
def analysis_describe(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/describe' % object_id, input_params, always_retry=always_retry, **kwargs)
287732
def invoke(invocation):
    
    (invocation.module_path,
     invocation.module_source) = get_module_data(invocation.module_name)
    planner = _get_planner(invocation)

    if invocation.wrap_async:
        response = _invoke_async_task(invocation, planner)
    elif planner.should_fork():
        response = _invoke_isolated_task(invocation, planner)
    else:
        _propagate_deps(invocation, planner, invocation.connection.context)
        response = invocation.connection.get_chain().call(
            ansible_mitogen.target.run_module,
            kwargs=planner.get_kwargs(),
        )

    return invocation.action._postprocess_response(response)
306672
def describe_export(self, export_type):
        
        if export_type in TALK_EXPORT_TYPES:
            return talk.get_data_request(
                'project-{}'.format(self.id),
                export_type.replace('talk_', '')
            )[0]

        return self.http_get(
            self._export_path(export_type),
        )[0]