Gets all organizations.
768223
def all(self, query=None, **kwargs):
        

        return super(OrganizationsProxy, self).all(query=query)
206924
def organizations(self, organization, include=None):
        
        return self._query_zendesk(self.endpoint.organizations, 'ticket', id=organization, include=include)
1353590
def get_all():
    '''
    
    '''
    (enabled_services, disabled_services) = _get_service_list(include_enabled=True,
                                                              include_disabled=True)
    enabled_services.update(dict([(s, []) for s in disabled_services]))
    return odict.OrderedDict(enabled_services)
286558
@Override
    public List<Board> getOrganizationBoards(String organizationId, Argument... args) {
        return asList(() -> get(createUrl(GET_ORGANIZATION_BOARD).params(args).asString(), Board[].class, organizationId));
    }
884548
def get_all(cls, parent=None, **params):

        if parent is not None:
            route = copy(parent.route)
        else:
            route = {}
        if cls.ID_NAME is not None:
            # Empty string triggers "get all resources"
            route[cls.ID_NAME] = ""

        base_obj = cls(key=parent.key, route=route, config=parent.config)
        """"""

        start = datetime.now()
        r = requests.get(
            base_obj._url(), auth=(base_obj.key, ""), params=params)
        cls._delay_for_ratelimits(start)

        if r.status_code not in cls.TRUTHY_CODES:
            return base_obj._handle_request_exception(r)

        response = r.json()
        objects_data = response.get(base_obj.ENVELOPE or base_obj, [])

        return_objects = []
        for data in objects_data:
            # Note that this approach does not get meta data
            return_objects.append(
                cls.get(
                    parent=parent,
                    id=data.get(cls.ID_NAME, data.get("id")),
                    data=data))

        return return_objects
286527
@GET
    @Produces({MediaType.TEXT_HTML, MediaType.APPLICATION_JSON})
    @Path(ServerAPI.GET_NAMES)
    public Response getNames(){
        LOG.info("Got a get organization names request.");

        final ListView view = new ListView("Organization Ids list", "Organizations");
        final List<String> names = getOrganizationHandler().getOrganizationNames();
        view.addAll(names);

        return Response.ok(view).build();
    }
31661
public function getAvailableOrganisations($as_simple_array = false)
    {
        $organisations = $this->get('users/' . $this->user_id . '/organisations');
        //If simple array is true, we send back an array with [id] => [name] instead of the full list
        if ($as_simple_array) {
            $temp = [];
            foreach ($organisations as $org) {
                $temp[$org['id']] = $org['name'];
            }
            $organisations = $temp;
        }
        asort($organisations);

        return $organisations;
    }
1070689
public List<String> getCorporateGroupIds(final String organizationId) {
        final DbOrganization dbOrganization = getOrganization(organizationId);
        return dbOrganization.getCorporateGroupIdPrefixes();
    }
437888
public CollectionRequest<Team> findByOrganization(String organization) {
    
        String path = String.format("/organizations/%s/teams", organization);
        return new CollectionRequest<Team>(this, Team.class, path, "GET");
    }
823167
public function listOrganizationRepositories($organization, $type = null)
	{
		$data = array();
		if(!is_null($type))
			$data['type'] = $type;
		
		return $this->client->request("/orgs/$organization/repos", 'GET', $data, 200, 'GitHubSimpleRepo', true);
	}
1151708
def all(self, res):
        ""
        B = get_backend()
        return B.get_objects(B.get_concrete(res))
266481
def get_orgs(options = {})
      raise ArgumentError, 'You must provide a :org option' if options[:org].nil? || options[:org].empty?
      options.merge!({:method => 'getOrgs'})
      self.class.get("/", :query => options)
    end
593409
def organization_organization_memberships(self, organization_id, **kwargs):
        ""
        api_path = "/api/v2/organizations/{organization_id}/organization_memberships.json"
        api_path = api_path.format(organization_id=organization_id)
        return self.call(api_path, **kwargs)
400397
def all(self):
        
        return self._client.get(
            url=self._client.get_full_url(
                self.get_path('collection', realm=self._realm_name)
            )
        )
966418
def organization_requests(self, id, **kwargs):
        ""
        api_path = "/api/v2/organizations/{id}/requests.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
463373
public function getOrganizationsByInnKpp($inn, $kpp = null, $includeRelations = false)
    {
        $response = $this->doRequest(
            self::RESOURCE_GET_ORGANIZATIONS_BY_INN_KPP,
            [
                'inn' => $inn,
                'kpp' => $kpp,
                'includeRelations' => $includeRelations?'true':'false'
            ]
        );

        return OrganizationList::fromStream($response);
    }
321508
def list_orgs(self):
        
        orgs = list(self.orgs.keys())
        orgs.sort()
        return orgs