List all Galleries

 Example Usage:
  - require 'kairos'
  - client = Kairos::Client.new(:app_id => '1234', :app_key => 'abcde1234')
  - client.gallery_list_all
1518
def gallery_list_all
      # ToDo: Research why Typhoeus works better than Faraday for this endpoint
      request = Typhoeus::Request.new(
        "#{Kairos::Configuration::GALLERY_LIST_ALL}",
        method: :post,
        headers: { "Content-Type" => "application/x-www-form-urlencoded",
                   "app_id"       => "#{@app_id}",
                   "app_key"      => "#{@app_key}" }
      )
      response = request.run
      JSON.parse(response.body) rescue "INVALID_JSON: #{response.body}"
    end
5545
def list(
        self,
        **kwargs
    ):
        

        request = Request(
            'GET',
            '/v3/accounts'
        )

        response = self.ctx.request(request)


        if response.content_type is None:
            return response

        if not response.content_type.startswith("application/json"):
            return response

        jbody = json.loads(response.raw_body)

        parsed_body = {}

        #
        # Parse responses as defined by the API specification
        #
        if str(response.status) == "200":
            if jbody.get('accounts') is not None:
                parsed_body['accounts'] = [
                    self.ctx.account.AccountProperties.from_dict(d, self.ctx)
                    for d in jbody.get('accounts')
                ]

        elif str(response.status) == "401":
            if jbody.get('errorCode') is not None:
                parsed_body['errorCode'] = \
                    jbody.get('errorCode')

            if jbody.get('errorMessage') is not None:
                parsed_body['errorMessage'] = \
                    jbody.get('errorMessage')

        elif str(response.status) == "405":
            if jbody.get('errorCode') is not None:
                parsed_body['errorCode'] = \
                    jbody.get('errorCode')

            if jbody.get('errorMessage') is not None:
                parsed_body['errorMessage'] = \
                    jbody.get('errorMessage')

        #
        # Unexpected response status
        #
        else:
            parsed_body = jbody

        response.body = parsed_body

        return response
968956
def show_all(key):
    '''
    
    '''
    def func(request, abbr, session, bill_id, key):
        # get fixed version
        fixed_bill_id = fix_bill_id(bill_id)
        # redirect if URL's id isn't fixed id without spaces
        if fixed_bill_id.replace(' ', '') != bill_id:
            return redirect('bill', abbr=abbr, session=session,
                            bill_id=fixed_bill_id.replace(' ', ''))
        bill = db.bills.find_one({settings.LEVEL_FIELD: abbr,
                                  'session': session,
                                  'bill_id': fixed_bill_id})
        if bill is None:
            raise Http404('no bill found {0} {1} {2}'.format(abbr, session,
                                                             bill_id))
        return render(request, templatename('bill_all_%s' % key),
                      dict(abbr=abbr, metadata=Metadata.get_object(abbr),
                           bill=bill, sources=bill['sources'],
                           nav_active='bills'))
    return func
1225659
def list_all():
    '''
    
    '''
    ret = []
    if _sd_version() >= 219:
        for line in _machinectl('list-images')['stdout'].splitlines():
            try:
                ret.append(line.split()[0])
            except IndexError:
                continue
    else:
        rootdir = _root()
        try:
            for dirname in os.listdir(rootdir):
                if os.path.isdir(os.path.join(rootdir, dirname)):
                    ret.append(dirname)
        except OSError:
            pass
    return ret
772008
def list_rooms(api_key=None):
    '''
    
    '''
    if not api_key:
        api_key = _get_api_key()
    return salt.utils.slack.query(function='rooms',
                                  api_key=api_key,
                                  opts=__opts__)
528403
function list(appName, callback) {
    commons.get(format('/%s/apps/%s/perms/', deis.version, appName), callback);
  }
529490
def apps(app_id = nil)
      if app_id
        Endpoints::SpecificApp.new(app_id)
      else
        Endpoints::Apps.new(app_access_token)
      end
    end
835280
def basic_auths
      apps = []
      response = client.get("#{@api_end_point}#{self.id}/basic-auth") rescue nil
      if response
        response['data'].each do |attributes|
          apps << Kong::BasicAuth.new(attributes)
        end
      end
      apps
    end
787587
def list
      Cli::Environments::EvaluateOnly.new(options).evaluate
      DslDescriber.new.list
    end
819883
def list(options = {})
      custom_params = []
      custom_params << use_named_parameter('dc', options[:dc]) if options[:dc]
      raw = send_get_request(@conn, ['/v1/session/list'], options, custom_params)
      JSON.parse(raw.body).map { |session| OpenStruct.new session }
    end
274527
def oauth_apps
      apps = []
      response = client.get("#{@api_end_point}#{self.id}/oauth2") rescue nil
      if response
        response['data'].each do |attributes|
          apps << Kong::OAuthApp.new(attributes)
        end
      end
      apps
    end
382485
def get_apps
      apps          = @api_rate_limit.call.app.list.sort_by { |app| DateTime.parse(app["created_at"]) }.reverse
      @app_count    = apps.count
      @hatchet_apps = apps.select {|app| app["name"].match(@regex) }
    end
998049
def image_list(auth=None, **kwargs):
    '''
    
    '''
    cloud = get_operator_cloud(auth)
    kwargs = _clean_kwargs(**kwargs)
    return cloud.list_images(**kwargs)
25717
def list_images(self, image_state):
        
        if not isinstance(image_state, CloudImageState):
            raise TypeError("image_state can only be an instance of type CloudImageState")
        (return_ids, return_names) = self._call("listImages",
                     in_p=[image_state])
        return (return_ids, return_names)
324348
def list_images(self, provider=None):
        '''
        
        '''
        mapper = salt.cloud.Map(self._opts_defaults())
        return salt.utils.data.simple_types_filter(
            mapper.image_list(provider)
        )
176518
function list(appName, callback) {
    var uri = format('/%s/apps/%s/config/', deis.version, appName);
    commons.get(uri, function onListResponse(err, result) {
      callback(err, result ? result.values : null);
    });
  }
9567
def get_all_image_lists(custom_headers:nil)
      response = get_all_image_lists_async(custom_headers:custom_headers).value!
      response.body unless response.nil?
    end