:rtype: twilio.rest.preview.marketplace.available_add_on.AvailableAddOnList
968421
def available_add_ons(self):
        
        if self._available_add_ons is None:
            self._available_add_ons = AvailableAddOnList(self)
        return self._available_add_ons
967390
def buildlist(self, enabled):
        
        choice = []
        for item in self.data:
            choice.append((item, False))
        for item in enabled:
            choice.append((item, True))
        items = [(tag, tag, sta) for (tag, sta) in choice]
        code, self.tags = self.d.buildlist(
            text=self.text, items=items, visit_items=True, item_help=False,
            title=self.title)
        if code == "ok":
            self.unicode_to_string()
            return self.ununicode
        if code in ["cancel", "esc"]:
            self.exit()
1207805
def postOptions(self):
        
        o = self.store.findFirst(
            offering.InstalledOffering,
            (offering.InstalledOffering.offeringName ==
             self["name"]))
        if o is None:
            raise usage.UsageError("No offering of that name"
                                   " is installed.")
        fp = self.store.findUnique(publicweb.FrontPage)
        fp.defaultApplication = o.application
126909
def isAvailable(self, requester, access):
        
        debuglog("%s isAvailable(%s, %s): self.owners=%r"
                 % (self, requester, access, self.owners))
        num_excl, num_counting = self._claimed_excl, self._claimed_counting

        # Find all waiters ahead of the requester in the wait queue
        for idx, waiter in enumerate(self.waiting):
            if waiter[0] is requester:
                w_index = idx
                break
        else:
            w_index = len(self.waiting)
        ahead = self.waiting[:w_index]

        if access.mode == 'counting':
            # Wants counting access
            return num_excl == 0 and num_counting + len(ahead) < self.maxCount \
                and all([w[1].mode == 'counting' for w in ahead])
        # else Wants exclusive access
        return num_excl == 0 and num_counting == 0 and not ahead
1273945
def existing(self):
        
        catalog = api.portal.get_tool('portal_catalog')
        results = []
        layout_path = self._get_layout_path(
            self.request.form.get('layout', '')
        )
        for brain in catalog(layout=layout_path):
            results.append({
                'title': brain.Title,
                'url': brain.getURL()
            })
        return json.dumps({
            'total': len(results),
            'data': results
        })
564046
def getaddrlist(self):
        
        result = []
        while self.pos < len(self.field):
            ad = self.getaddress()
            if ad:
                result += ad
            else:
                result.append(('', ''))
        return result
524928
public void setSupportedAddonList(java.util.Collection<String> supportedAddonList) {
        if (supportedAddonList == null) {
            this.supportedAddonList = null;
            return;
        }

        this.supportedAddonList = new com.amazonaws.internal.SdkInternalList<String>(supportedAddonList);
    }
1060586
def supported_providers(self):
        
        req = self.request(self.uri + '/providers', api_version=2)
        providers = req.get().json()
        supported_providers = providers['supported_providers']
        return supported_providers
873983
public void notifyAddOnUninstalled(final AddOn addOn) {
		if (EventQueue.isDispatchThread()) {
			installedAddOnsModel.removeAddOn(addOn);
			if (latestInfo != null) {
				AddOn availableAddOn = latestInfo.getAddOn(addOn.getId());
				if (availableAddOn != null) {
					uninstalledAddOnsModel.addAddOn(latestInfo.getAddOn(addOn.getId()));
				}
			}
		} else {
			EventQueue.invokeLater(new Runnable() {

				@Override
				public void run() {
					notifyAddOnUninstalled(addOn);
				}
			});
		}
	}
1300346
def list_available_request_headers(custom_headers:nil)
      response = list_available_request_headers_async(custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
968626
public final void available(AbstractItemLink link) throws SevereMessageStoreException
    {
        if (_jumpbackEnabled)
        {
            final long newPos = link.getPosition();

            // we need to synchronize the read of the position
            // or we can miss out items when reading an empty queue fast.
            // More importantly, the removal of the next from the cursor cannot
            // happen while we are adding the available
            synchronized(this)
            {
                if (newPos <= _highestPosition)
                {
                    // Only store matching links, 'coz its quicker
                    if (null != link.matches(_filter))
                    {
                        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "availableLink adding: " + link);

                        _behindList.insert(link);
                    }
                    else
                    {
                        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "availableLink does not match: " + link);
                    }
                }
                else
                {
                    if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "availableLink seq(" + newPos + ") too large (" + _highestPosition + ")");
                }
            }
        }
        else
        {
            if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "available link - jumpbackDisabled: " + link);
        }
    }
317701
def lookups(self):
        
        if self._lookups is None:
            from twilio.rest.lookups import Lookups
            self._lookups = Lookups(self)
        return self._lookups
811754
def available(self):
        '''  '''
        return self.db_name in map(
            lambda x: x['name'], self._db.get_database_list()
        )
322836
def update_available(self, name):
        """"""
        quota = self.usages.get(name, {}).get('quota', float('inf'))
        available = quota - self.usages[name]['used']
        if available < 0:
            available = 0
        self.usages[name]['available'] = available
778060
def is_available(self):
        
        if self.is_always_available:
            return True
        for viewname in self.__views__:
            if getattr(self, viewname).is_available():
                return True
        return False
247794
def available(self, context):
	
		
		if self.__available is None:
			state = self.__inst.state(context)
			self.__available = state is not None and state != "not_created"
		return self.__available
41050
def list_available_ssl_options(custom_headers:nil)
      response = list_available_ssl_options_async(custom_headers:custom_headers).value!
      response.body unless response.nil?
    end