Did I find the right examples for you? yes no

All Samples(69)  |  Call(0)  |  Derive(61)  |  Import(8)

src/m/i/mistral-extra-0.0.2/examples/webhooks/api/controllers/resource.py   mistral-extra(Download)
class Resource(wtypes.Base):
    """REST API Resource."""
 
    @classmethod
    def from_dict(cls, d):

src/l/i/libra-HEAD/libra/api/model/validators.py   libra(Download)
from wsme import types as wtypes
from wsme import wsattr
from wsme.types import Base, Enum
 
 
class LBNode(Base):
class LBRespNode(Base):
    id = wtypes.text
    port = wtypes.text
    address = wtypes.text
    condition = wtypes.text
    status = wtypes.text
    weight = wtypes.text
 
 
class LBNodePut(Base):
class NodeResp(Base):
    id = int
    address = wtypes.text
    port = int
    condition = wtypes.text

src/l/i/libra-HEAD/libra/admin_api/model/validators.py   libra(Download)
from wsme import types as wtypes
from wsme import wsattr
from wsme.types import Base, Enum
 
 
class LB(Base):
class DevicePost(Base):
    name = wsattr(wtypes.text, mandatory=True)
    publicIpAddr = wsattr(wtypes.text, mandatory=True)
    floatingIpAddr = wsattr(wtypes.text, mandatory=True)
    az = wsattr(int, mandatory=True)
    type = wsattr(wtypes.text, mandatory=True)
 
 
class DeviceResp(Base):
class DevicePut(Base):
    status = Enum(wtypes.text, 'ONLINE', 'ERROR')
    statusDescription = wsattr(wtypes.text, mandatory=True)
 

src/i/r/ironic-HEAD/ironic/api/controllers/v1/types.py   ironic(Download)
class JsonPatchType(wtypes.Base):
    """A complex type that represents a single json-patch operation."""
 
    path = wtypes.wsattr(wtypes.StringType(pattern='^(/[\w-]+)+$'),
                         mandatory=True)

src/c/e/ceilometer-HEAD/ceilometer/api/controllers/v2.py   ceilometer(Download)
class _Base(wtypes.Base):
 
    @classmethod
    def from_db_model(cls, m):
        return cls(**(m.as_dict()))

src/s/o/solum-HEAD/solum/api/controllers/v1/datamodel/plan.py   solum(Download)
class Requirement(wtypes.Base):
 
    requirement_type = wtypes.text
    "Type of requirement."
 
    fulfillment = wtypes.text
    "The ID of the service."
 
 
class ServiceReference(wtypes.Base):
class Artifact(wtypes.Base):
    """Artifact."""
 
    name = wtypes.text
    "Name of the artifact."

src/s/o/solum-HEAD/solum/api/controllers/v1/datamodel/types.py   solum(Download)
class Base(wtypes.Base):
    """Base class for all API types."""
 
    uri = common_types.Uri
    "URI to the resource."

src/s/o/solum-HEAD/solum/api/controllers/root.py   solum(Download)
class Version(wtypes.Base):
    """Version representation."""
 
    id = wtypes.text
    "The version identifier."

src/w/s/WSME-0.6/wsmeext/extdirect/datastore.py   WSME(Download)
class ReadResultBase(wsme.types.Base):
    total = int
    success = bool
    message = wsme.types.text
 

src/w/s/wsme-HEAD/wsmeext/extdirect/datastore.py   wsme(Download)
class ReadResultBase(wsme.types.Base):
    total = int
    success = bool
    message = wsme.types.text
 

  1 | 2 | 3  Next