Did I find the right examples for you? yes no

All Samples(68)  |  Call(66)  |  Derive(0)  |  Import(2)

src/c/e/ceilometer-HEAD/ceilometer/api/controllers/v2.py   ceilometer(Download)
    "The ID of the source that identifies where the sample comes from"
 
    counter_name = wsme.wsattr(wtypes.text, mandatory=True)
    "The name of the meter"
    # FIXME(dhellmann): Make this meter_name?
 
    counter_type = wsme.wsattr(wtypes.text, mandatory=True)
    # FIXME(dhellmann): Make this meter_type?
 
    counter_unit = wsme.wsattr(wtypes.text, mandatory=True)
    "The unit of measure for the value in counter_volume"
    # FIXME(dhellmann): Make this meter_unit?
 
    counter_volume = wsme.wsattr(float, mandatory=True)
    "The ID of the project or tenant that owns the resource"
 
    resource_id = wsme.wsattr(wtypes.text, mandatory=True)
    "The ID of the :class:`Resource` for which the measurements are taken"
 

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):
    id = wsattr(int, mandatory=True)
    tenantid = wsattr(wtypes.text, mandatory=True)
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)

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):
    port = wsattr(int, mandatory=True)
    address = wsattr(wtypes.text, mandatory=True)
class LBNodePost(Base):
    nodes = wsattr(['LBNode'], mandatory=True)
 
 
class LBNodeResp(Base):
    nodes = wsattr(['NodeResp'])

src/i/r/ironic-HEAD/ironic/api/controllers/v1/node.py   ironic(Download)
    "The UUID of the instance in nova-compute"
 
    power_state = wsme.wsattr(wtypes.text, readonly=True)
    "Represent the current (not transition) power state of the node"
 
    target_power_state = wsme.wsattr(wtypes.text, readonly=True)
    "The user modified desired power state of the node."
 
    last_error = wsme.wsattr(wtypes.text, readonly=True)
    "started but failed to finish."
 
    provision_state = wsme.wsattr(wtypes.text, readonly=True)
    "Represent the current (not transition) provision state of the node"
 
    reservation = wsme.wsattr(wtypes.text, readonly=True)

src/i/r/ironic-HEAD/ironic/api/controllers/v1/port.py   ironic(Download)
    "Unique UUID for this port"
 
    address = wsme.wsattr(types.macaddress, mandatory=True)
    "MAC Address for this port"
 
    "The UUID of the node this port belongs to"
 
    links = wsme.wsattr([link.Link], readonly=True)
    "A list containing a self link and associated port links"
 

src/t/u/tuskar-HEAD/tuskar/api/controllers/v1/types/flavor.py   tuskar(Download)
class Flavor(Base):
    """A representation of Flavor in HTTP body."""
    #FIXME - I want id to be UUID - String
    id = wsme.wsattr(int, mandatory=True)
    name = wsme.wsattr(wtypes.text, mandatory=False)
    max_vms = wsme.wsattr(int, mandatory=False)

src/i/r/ironic-HEAD/ironic/api/controllers/base.py   ironic(Download)
class APIBase(wtypes.Base):
 
    created_at = wsme.wsattr(datetime.datetime, readonly=True)
    "The time in UTC at which the object is created"
 
    updated_at = wsme.wsattr(datetime.datetime, readonly=True)

src/i/r/ironic-HEAD/ironic/api/controllers/v1/driver.py   ironic(Download)
    "A list of active conductors that support this driver"
 
    links = wsme.wsattr([link.Link], readonly=True)
    "A list containing self and bookmark links"
 

src/i/r/ironic-HEAD/ironic/api/controllers/v1/chassis.py   ironic(Download)
    "The metadata of the chassis"
 
    links = wsme.wsattr([link.Link], readonly=True)
    "A list containing a self link and associated chassis links"
 
    nodes = wsme.wsattr([link.Link], readonly=True)