async def create(
            cls, boot_source, os, release, *,
            arches=None, subarches=None, labels=None):
        """Create a new `BootSourceSelection`."""
        if not isinstance(boot_source, BootSource):
            raise TypeError(
                "boot_source must be a BootSource, not %s"
                % type(boot_source).__name__)
        if arches is None:
            arches = ['*']
        if subarches is None:
            subarches = ['*']
        if labels is None:
            labels = ['*']
        data = await cls._handler.create(
            boot_source_id=boot_source.id,
            os=os, release=release, arches=arches, subarches=subarches,
            labels=labels)
        return cls._object(data, {"boot_source_id": boot_source.id})
async def create ( cls , boot_source , os , release , * , arches = None , subarches = None , labels = None ) : if not isinstance ( boot_source , BootSource ) : raise TypeError ( "boot_source must be a BootSource, not %s" % type ( boot_source ) . __name__ ) if arches is None : arches = [ '*' ] if subarches is None : subarches = [ '*' ] if labels is None : labels = [ '*' ] data = await cls . _handler . create ( boot_source_id = boot_source . id , os = os , release = release , arches = arches , subarches = subarches , labels = labels ) return cls . _object ( data , { "boot_source_id" : boot_source . id } )
Create a new `BootSourceSelection`.