OpenStack Study: nova
OpenStack IndexPreviousNext
class Controller(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _perhaps_hide_addresses(self, instance, resp_server):
def show(self, req, resp_obj, id):
def detail(self, req, resp_obj):
class HideServerAddresses(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\hosts.py
class HostController(wsgi.Controller):
def __init__(self):
def index(self, req):
def update(self, req, id, body):
def read_enabled(orig_val, msg):
def _set_host_maintenance(self, context, host_name, mode=True):
def _set_enabled_status(self, context, host_name, enabled):
def _host_power_action(self, req, host_name, action):
def startup(self, req, id):
def shutdown(self, req, id):
def reboot(self, req, id):
def _get_total_resources(host_name, compute_node):
def _get_used_now_resources(host_name, compute_node):
def _get_resource_totals_from_instances(host_name, instances):
def _get_resources_by_project(host_name, instances):
def show(self, req, id):
class Hosts(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\hypervisors.py
class HypervisorsController(object):
def __init__(self):
def _view_hypervisor(self, hypervisor, detail, servers=None, **kwargs):
def index(self, req):
def detail(self, req):
def show(self, req, id):
def uptime(self, req, id):
def search(self, req):
def servers(self, req, id):
def statistics(self, req):
class Hypervisors(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\instance_actions.py
class InstanceActionsController(wsgi.Controller):
def __init__(self):
def _format_action(self, action_raw):
def _format_event(self, event_raw):
def index(self, req, server_id):
def show(self, req, server_id, id):
class InstanceActions(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\ips.py
class IPsController(wsgi.Controller):
def __init__(self, **kwargs):
def _get_instance(self, context, server_id):
def create(self, req, server_id, body):
def delete(self, req, server_id, id):
def index(self, req, server_id):
def show(self, req, server_id, id):
class IPs(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\keypairs.py
class KeypairController(object):
def __init__(self):
def _filter_keypair(self, keypair, **attrs):
def create(self, req, body):
def delete(self, req, id):
def show(self, req, id):
def index(self, req):
class Controller(wsgi.Controller):
def _add_key_name(self, req, servers):
def _show(self, req, resp_obj):
def show(self, req, resp_obj, id):
def detail(self, req, resp_obj):
class Keypairs(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
def server_create(self, server_dict, create_kwargs):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\lock_server.py
def authorize(context, action_name):
class LockServerController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _lock(self, req, id, body):
def _unlock(self, req, id, body):
class LockServer(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\migrate_server.py
def authorize(context, action_name):
class MigrateServerController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _migrate(self, req, id, body):
def _migrate_live(self, req, id, body):
class MigrateServer(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\migrations.py
def authorize(context, action_name):
def output(migrations_obj):
class MigrationsController(object):
def __init__(self):
def index(self, req):
class Migrations(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\multinic.py
class MultinicController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _add_fixed_ip(self, req, id, body):
def _remove_fixed_ip(self, req, id, body):
class Multinic(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\multiple_create.py
class MultipleCreate(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
def server_create(self, server_dict, create_kwargs):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\pause_server.py
def authorize(context, action_name):
class PauseServerController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _pause(self, req, id, body):
def _unpause(self, req, id, body):
class PauseServer(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\pci.py
class PciServerController(wsgi.Controller):
def _extend_server(self, server, instance):
def show(self, req, resp_obj, id):
def detail(self, req, resp_obj):
class PciHypervisorController(wsgi.Controller):
def _extend_hypervisor(self, hypervisor, compute_node):
def show(self, req, resp_obj, id):
def detail(self, req, resp_obj):
class PciController(object):
def __init__(self):
def _view_pcidevice(self, device, detail=False):
def _get_all_nodes_pci_devices(self, req, detail, action):
def detail(self, req):
def show(self, req, id):
def index(self, req):
class Pci(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\quota_sets.py
class QuotaSetsController(wsgi.Controller):
def _format_quota_set(self, project_id, quota_set):
def _validate_quota_limit(self, limit, minimum, maximum):
def _get_quotas(self, context, id, user_id=None, usages=False):
def show(self, req, id):
def detail(self, req, id):
def update(self, req, id, body):
def defaults(self, req, id):
def delete(self, req, id):
class QuotaSets(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\remote_consoles.py
class RemoteConsolesController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def get_vnc_console(self, req, id, body):
def get_spice_console(self, req, id, body):
def get_rdp_console(self, req, id, body):
class RemoteConsoles(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\rescue.py
class RescueController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _rescue(self, req, id, body):
def _unrescue(self, req, id, body):
class Rescue(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\scheduler_hints.py
class SchedulerHints(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
def server_create(self, server_dict, create_kwargs):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\security_groups.py
def _authorize_context(req):
class SecurityGroupsOutputController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _extend_servers(self, req, servers):
def _show(self, req, resp_obj):
def show(self, req, resp_obj, id):
def create(self, req, resp_obj, body):
def detail(self, req, resp_obj):
class SecurityGroups(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
def server_create(self, server_dict, create_kwargs):
class NativeSecurityGroupExceptions(object):
def raise_invalid_property(msg):
def raise_group_already_exists(msg):
def raise_invalid_group(msg):
def raise_invalid_cidr(cidr, decoding_exception=None):
def raise_over_quota(msg):
def raise_not_found(msg):
class NativeNovaSecurityGroupAPI(NativeSecurityGroupExceptions,
compute_api.SecurityGroupAPI):
class NativeNeutronSecurityGroupAPI(NativeSecurityGroupExceptions,
neutron_driver.SecurityGroupAPI):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\servers.py
class ServersController(wsgi.Controller):
def _add_location(robj):
def __init__(self, **kwargs):
def _check_load_extension(required_function):
def index(self, req):
def detail(self, req):
def _get_servers(self, req, is_detail):
def _get_server(self, context, req, instance_uuid):
def _check_string_length(self, value, name, max_length=None):
def _validate_server_name(self, value):
def _validate_device_name(self, value):
def _get_requested_networks(self, requested_networks):
def _decode_base64(self, data):
def show(self, req, id):
def create(self, req, body):
def _create_extension_point(self, ext, server_dict, create_kwargs):
def _rebuild_extension_point(self, ext, rebuild_dict, rebuild_kwargs):
def _resize_extension_point(self, ext, resize_dict, resize_kwargs):
def _update_extension_point(self, ext, update_dict, update_kwargs):
def _delete(self, context, req, instance_uuid):
def update(self, req, id, body):
def _action_confirm_resize(self, req, id, body):
def _action_revert_resize(self, req, id, body):
def _action_reboot(self, req, id, body):
def _resize(self, req, instance_id, flavor_id, **kwargs):
def delete(self, req, id):
def _image_uuid_from_href(self, image_href):
def _image_from_req_data(self, server_dict, create_kwargs):
def _flavor_id_from_req_data(self, data):
def _action_resize(self, req, id, body):
def _action_rebuild(self, req, id, body):
def _action_create_image(self, req, id, body):
def _get_server_admin_password(self, server):
def _validate_admin_password(self, password):
def _get_server_search_options(self):
def _get_instance(self, context, instance_uuid):
def _start_server(self, req, id, body):
def _stop_server(self, req, id, body):
def remove_invalid_options(context, search_options, allowed_search_options):
class Servers(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\server_diagnostics.py
class ServerDiagnosticsController(object):
def index(self, req, server_id):
class ServerDiagnostics(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\server_external_events.py
class ServerExternalEventsController(wsgi.Controller):
def __init__(self):
def create(self, req, body):
class ServerExternalEvents(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\server_metadata.py
class ServerMetadataController(wsgi.Controller):
def __init__(self):
def _get_metadata(self, context, server_id):
def index(self, req, server_id):
def create(self, req, server_id, body):
def update(self, req, server_id, id, body):
def update_all(self, req, server_id, body):
def _update_instance_metadata(self, context, server_id, metadata, delete=False):
def show(self, req, server_id, id):
def delete(self, req, server_id, id):
class ServerMetadata(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
def server_metadata_map(self, mapper, wsgi_resource):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\server_password.py
class ServerPasswordController(object):
def __init__(self):
def index(self, req, server_id):
def clear(self, req, server_id):
class ServerPassword(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\server_usage.py
class ServerUsageController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _extend_server(self, server, instance):
def show(self, req, resp_obj, id):
def detail(self, req, resp_obj):
class ServerUsage(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\services.py
class ServiceController(wsgi.Controller):
def __init__(self):
def _get_services(self, req):
def _get_service_detail(self, svc):
def _get_services_list(self, req):
def _is_valid_as_reason(self, reason):
def delete(self, req, id):
def index(self, req):
def update(self, req, id, body):
class Services(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\shelve.py
class ShelveController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _shelve(self, req, id, body):
def _shelve_offload(self, req, id, body):
def _unshelve(self, req, id, body):
class Shelve(exts.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\suspend_server.py
def authorize(context, action_name):
class SuspendServerController(wsgi.Controller):
def __init__(self, *args, **kwargs):
def _suspend(self, req, id, body):
def _resume(self, req, id, body):
class SuspendServer(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\user_data.py
class UserData(extensions.V3APIExtensionBase):
def get_controller_extensions(self):
def get_resources(self):
def server_create(self, server_dict, create_kwargs):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\versions.py
class VersionsController(object):
def show(self, req, id='v3.0'):
class Versions(extensions.V3APIExtensionBase):
def get_resources(self):
def get_controller_extensions(self):
def version_map(self, mapper, wsgi_resource):
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\v3\__init__.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\plugins\__init__.py
class LoadedExtensionInfo(object):
def __init__(self):
def register_extension(self, ext):
def _check_extension(self, extension):
def get_extensions(self):
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\admin_password.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\agents.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\console_output.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\evacuate.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\extended_volumes.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\flavor_access.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\keypairs.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\multinic.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\rescue.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\v3\__init__.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\schemas\__init__.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\servers.py
def make_fault(elem):
def make_server(elem, detailed=False):
class ServerTemplate(xmlutil.TemplateBuilder):
def construct(self):
class MinimalServersTemplate(xmlutil.TemplateBuilder):
def construct(self):
class ServersTemplate(xmlutil.TemplateBuilder):
def construct(self):
class ServerAdminPassTemplate(xmlutil.TemplateBuilder):
def construct(self):
class ServerMultipleCreateTemplate(xmlutil.TemplateBuilder):
def construct(self):
def FullServerTemplate():
class CommonDeserializer(wsgi.MetadataXMLDeserializer):
def _extract_personality(self, server_node):
def _extract_server(self, node):
def _extract_block_device_mapping(self, server_node):
def _extract_block_device_mapping_v2(self, server_node):
def _extract_scheduler_hints(self, server_node):
def _extract_networks(self, server_node):
def _extract_security_groups(self, server_node):
class ActionDeserializer(CommonDeserializer):
def default(self, string):
def _action_create_image(self, node):
def _action_change_password(self, node):
def _action_reboot(self, node):
def _action_rebuild(self, node):
def _action_resize(self, node):
def _action_confirm_resize(self, node):
def _action_revert_resize(self, node):
def _deserialize_image_action(self, node, allowed_attributes):
class CreateDeserializer(CommonDeserializer):
def default(self, string):
class Controller(wsgi.Controller):
def _add_location(robj):
def __init__(self, ext_mgr=None, **kwargs):
def index(self, req):
def detail(self, req):
def _get_servers(self, req, is_detail):
def _get_server(self, context, req, instance_uuid):
def _check_string_length(self, value, name, max_length=None):
def _validate_server_name(self, value):
def _get_injected_files(self, personality):
def _get_requested_networks(self, requested_networks):
def _decode_base64(self, data):
def _validate_user_data(self, user_data):
def _validate_access_ipv4(self, address):
def _validate_access_ipv6(self, address):
def show(self, req, id):
def create(self, req, body):
def _delete(self, context, req, instance_uuid):
def update(self, req, id, body):
def _action_confirm_resize(self, req, id, body):
def _action_revert_resize(self, req, id, body):
def _action_reboot(self, req, id, body):
def _resize(self, req, instance_id, flavor_id, **kwargs):
def delete(self, req, id):
def _image_ref_from_req_data(self, data):
def _image_uuid_from_href(self, image_href):
def _image_from_req_data(self, data):
def _flavor_id_from_req_data(self, data):
def _action_change_password(self, req, id, body):
def _validate_metadata(self, metadata):
def _action_resize(self, req, id, body):
def _action_rebuild(self, req, id, body):
def _action_create_image(self, req, id, body):
def _get_server_admin_password(self, server):
def _validate_admin_password(self, password):
def _get_server_search_options(self):
def create_resource(ext_mgr):
def remove_invalid_options(context, search_options, allowed_search_options):
\OpenStack\nova-2014.1\nova\api\openstack\compute\server_metadata.py
class Controller(object):
def __init__(self):
def _get_metadata(self, context, server_id):
def index(self, req, server_id):
def create(self, req, server_id, body):
def update(self, req, server_id, id, body):
def update_all(self, req, server_id, body):
def _update_instance_metadata(self, context, server_id, metadata, delete=False):
def show(self, req, server_id, id):
def delete(self, req, server_id, id):
def create_resource():
\OpenStack\nova-2014.1\nova\api\openstack\compute\versions.py
class MediaTypesTemplateElement(xmlutil.TemplateElement):
def will_render(self, datum):
def make_version(elem):
class VersionTemplate(xmlutil.TemplateBuilder):
def construct(self):
class VersionsTemplate(xmlutil.TemplateBuilder):
def construct(self):
class ChoicesTemplate(xmlutil.TemplateBuilder):
def construct(self):
class AtomSerializer(wsgi.XMLDictSerializer):
def __init__(self, metadata=None, xmlns=None):
def _get_most_recent_update(self, versions):
def _get_base_url(self, link_href):
def _create_feed(self, versions, feed_title, feed_id):
def _create_version_entry(self, version):
class VersionsAtomSerializer(AtomSerializer):
def default(self, data):
class VersionAtomSerializer(AtomSerializer):
def default(self, data):
class Versions(wsgi.Resource):
def __init__(self):
def index(self, req):
def multi(self, req):
def get_action_args(self, request_environment):
class VersionV2(object):
def show(self, req):
def create_resource():
\OpenStack\nova-2014.1\nova\api\openstack\compute\views\addresses.py
class ViewBuilder(common.ViewBuilder):
def basic(self, ip):
def show(self, network, label):
def index(self, networks):
class ViewBuilderV3(ViewBuilder):
def basic(self, ip):
\OpenStack\nova-2014.1\nova\api\openstack\compute\views\flavors.py
class ViewBuilder(common.ViewBuilder):
def basic(self, request, flavor):
def show(self, request, flavor):
def index(self, request, flavors):
def detail(self, request, flavors):
def _list_view(self, func, request, flavors):
class V3ViewBuilder(ViewBuilder):
def show(self, request, flavor):
\OpenStack\nova-2014.1\nova\api\openstack\compute\views\images.py
class ViewBuilder(common.ViewBuilder):
def basic(self, request, image):
def show(self, request, image):
def detail(self, request, images):
def index(self, request, images):
def _list_view(self, list_func, request, images):
def _get_links(self, request, identifier, collection_name):
def _get_alternate_link(self, request, identifier):
def _format_date(date_string):
def _get_status(image):
def _get_progress(image):
class ViewBuilderV3(ViewBuilder):
def _get_bookmark_link(self, request, identifier, collection_name):
\OpenStack\nova-2014.1\nova\api\openstack\compute\views\limits.py
class ViewBuilder(object):
def build(self, rate_limits, absolute_limits):
def _build_absolute_limits(self, absolute_limits):
def _build_rate_limits(self, rate_limits):
def _build_rate_limit(self, rate_limit):
class ViewBuilderV3(ViewBuilder):
def build(self, rate_limits):
\OpenStack\nova-2014.1\nova\api\openstack\compute\views\servers.py
class ViewBuilder(common.ViewBuilder):
def __init__(self):
def create(self, request, instance):
def basic(self, request, instance):
def show(self, request, instance):
def index(self, request, instances):
def detail(self, request, instances):
def _list_view(self, func, request, servers):
def _get_metadata(instance):
def _get_vm_status(instance):
def _get_host_id(instance):
def _get_addresses(self, request, instance):
def _get_image(self, request, instance):
def _get_flavor(self, request, instance):
def _get_fault(self, request, instance):
class ViewBuilderV3(ViewBuilder):
def __init__(self):
def show(self, request, instance):
\OpenStack\nova-2014.1\nova\api\openstack\compute\views\versions.py
def get_view_builder(req):
class ViewBuilder(common.ViewBuilder):
def __init__(self, base_url):
def build_choices(self, VERSIONS, req):
def build_versions(self, versions):
def build_version(self, version):
def _build_links(self, version_data):
def generate_href(self, version, path=None):
\OpenStack\nova-2014.1\nova\api\openstack\compute\views\__init__.py
\OpenStack\nova-2014.1\nova\api\openstack\compute\__init__.py
class APIRouter(nova.api.openstack.APIRouter):
def _setup_routes(self, mapper, ext_mgr, init_only):
class APIRouterV3(nova.api.openstack.APIRouterV3):
def __init__(self, init_only=None):
def _register_extension(self, ext):
def loaded_extension_info(self):
\OpenStack\nova-2014.1\nova\api\openstack\extensions.py
class ExtensionDescriptor(object):
def __init__(self, ext_mgr):
def get_resources(self):
def get_controller_extensions(self):
def nsmap(cls):
def xmlname(cls, name):
def make_ext(elem):
class ExtensionTemplate(xmlutil.TemplateBuilder):
def construct(self):
class ExtensionsTemplate(xmlutil.TemplateBuilder):
def construct(self):
class ExtensionsController(wsgi.Resource):
def __init__(self, extension_manager):
def _translate(self, ext):
def index(self, req):
def show(self, req, id):
def delete(self, req, id):
def create(self, req, body):
class ExtensionManager(object):
def sorted_extensions(self):
def is_loaded(self, alias):
def register(self, ext):
def get_resources(self):
def get_controller_extensions(self):
def _check_extension(self, extension):
def load_extension(self, ext_factory):
def _load_extensions(self):
class ControllerExtension(object):
def __init__(self, extension, collection, controller):
class ResourceExtension(object):
def __init__(self, collection, controller=None, parent=None, collection_actions=None, member_actions=None, custom_routes_fn=None, inherits=None, member_name=None):
def load_standard_extensions(ext_mgr, logger, path, package, ext_list=None):
def core_authorizer(api_name, extension_name):
def authorize(context, target=None, action=None):
def extension_authorizer(api_name, extension_name):
def soft_extension_authorizer(api_name, extension_name):
def authorize(context, action=None):
def check_compute_policy(context, action, target, scope='compute'):
class V3APIExtensionBase(object):
def __init__(self, extension_info):
def get_resources(self):
def get_controller_extensions(self):
def name(self):
def alias(self):
def version(self):
def expected_errors(errors):
def decorator(f):
def wrapped(*args, **kwargs):
\OpenStack\nova-2014.1\nova\api\openstack\urlmap.py
def unquote_header_value(value):
def parse_list_header(value):
def parse_options_header(value):
def _tokenize(string):
class Accept(object):
def __init__(self, value):
def best_match(self, supported_content_types):
def content_type_params(self, best_content_type):
def _match_mask(self, mask, content_type):
def urlmap_factory(loader, global_conf, **local_conf):
class URLMap(paste.urlmap.URLMap):
def _match(self, host, port, path_info):
def _set_script_name(self, app, app_url):
def wrap(environ, start_response):
def _munge_path(self, app, path_info, app_url):
def wrap(environ, start_response):
def _path_strategy(self, host, port, path_info):
def _content_type_strategy(self, host, port, environ):
def _accept_strategy(self, host, port, environ, supported_content_types):
def __call__(self, environ, start_response):
\OpenStack\nova-2014.1\nova\api\openstack\wsgi.py
class Request(webob.Request):
def __init__(self, *args, **kwargs):
def cache_db_items(self, key, items, item_key='id'):
def get_db_items(self, key):
def get_db_item(self, key, item_key):
def cache_db_instances(self, instances):
def cache_db_instance(self, instance):
def get_db_instances(self):
def get_db_instance(self, instance_uuid):
def cache_db_flavors(self, flavors):
def cache_db_flavor(self, flavor):
def get_db_flavors(self):
def get_db_flavor(self, flavorid):
def cache_db_compute_nodes(self, compute_nodes):
def cache_db_compute_node(self, compute_node):
def get_db_compute_nodes(self):
def get_db_compute_node(self, id):
def best_match_content_type(self):
def get_content_type(self):
def best_match_language(self):
class ActionDispatcher(object):
def dispatch(self, *args, **kwargs):
def default(self, data):
class TextDeserializer(ActionDispatcher):
def deserialize(self, datastring, action='default'):
def default(self, datastring):
class JSONDeserializer(TextDeserializer):
def _from_json(self, datastring):
def default(self, datastring):
class XMLDeserializer(TextDeserializer):
def __init__(self, metadata=None):
def _from_xml(self, datastring):
def _from_xml_node(self, node, listnames):
def find_first_child_named_in_namespace(self, parent, namespace, name):
def find_first_child_named(self, parent, name):
def find_children_named(self, parent, name):
def extract_text(self, node):
def extract_elements(self, node):
def find_attribute_or_element(self, parent, name):
def default(self, datastring):
class MetadataXMLDeserializer(XMLDeserializer):
def extract_metadata(self, metadata_node):
class DictSerializer(ActionDispatcher):
def serialize(self, data, action='default'):
def default(self, data):
class JSONDictSerializer(DictSerializer):
def default(self, data):
class XMLDictSerializer(DictSerializer):
def __init__(self, metadata=None, xmlns=None):
def default(self, data):
def to_xml_string(self, node, has_atom=False):
def _add_xmlns(self, node, has_atom=False):
def _to_xml_node(self, doc, metadata, nodename, data):
def _create_link_nodes(self, xml_doc, links):
def _to_xml(self, root):
def serializers(**serializers):
def decorator(func):
def deserializers(**deserializers):
def decorator(func):
def response(code):
def decorator(func):
class ResponseObject(object):
def __init__(self, obj, code=None, headers=None, **serializers):
def __getitem__(self, key):
def __setitem__(self, key, value):
def __delitem__(self, key):
def _bind_method_serializers(self, meth_serializers):
def get_serializer(self, content_type, default_serializers=None):
def preserialize(self, content_type, default_serializers=None):
def attach(self, **kwargs):
def serialize(self, request, content_type, default_serializers=None):
def code(self):
def headers(self):
def action_peek_json(body):
def action_peek_xml(body):
class ResourceExceptionHandler(object):
def __enter__(self):
def __exit__(self, ex_type, ex_value, ex_traceback):
class Resource(wsgi.Application):
def __init__(self, controller, action_peek=None, inherits=None, **deserializers):
def register_actions(self, controller):
def register_extensions(self, controller):
def get_action_args(self, request_environment):
def get_body(self, request):
def deserialize(self, meth, content_type, body):
def pre_process_extensions(self, extensions, request, action_args):
def post_process_extensions(self, extensions, resp_obj, request, action_args):
def _should_have_body(self, request):
def __call__(self, request):
def _process_stack(self, request, action, action_args, content_type, body, accept):
def get_method(self, request, action, content_type, body):
def _get_method(self, request, action, content_type, body):
def dispatch(self, method, request, action_args):
def action(name):
def decorator(func):
def index(...):
def _action_resize(...):
def decorator(func):
class ControllerMetaclass(type):
def __new__(mcs, name, bases, cls_dict):
class Controller(object):
def __init__(self, view_builder=None):
def is_valid_body(body, entity_name):
def is_dict(d):
class Fault(webob.exc.HTTPException):
def __init__(self, exception):
def __call__(self, req):
def __str__(self):
class RateLimitFault(webob.exc.HTTPException):
def __init__(self, message, details, retry_time):
def _retry_after(retry_time):
def __call__(self, request):
def _set_request_id_header(req, headers):
\OpenStack\nova-2014.1\nova\api\openstack\xmlutil.py
def validate_schema(xml, schema_name, version='v1.1'):
class Selector(object):
def __init__(self, *chain):
def __repr__(self):
def __call__(self, obj, do_raise=False):
def get_items(obj):
def get_items_without_dict(obj):
class EmptyStringSelector(Selector):
def __call__(self, obj, do_raise=False):
class ConstantSelector(object):
def __init__(self, value):
def __repr__(self):
def __call__(self, _obj, _do_raise=False):
class TemplateElement(object):
def __init__(self, tag, attrib=None, selector=None, subselector=None, colon_ns=False, **extra):
def __repr__(self):
def __len__(self):
def __contains__(self, key):
def __getitem__(self, idx):
def append(self, elem):
def extend(self, elems):
def insert(self, idx, elem):
def remove(self, elem):
def get(self, key):
def set(self, key, value=None):
def keys(self):
def items(self):
def unwrap(self):
def wrap(self):
def apply(self, elem, obj):
def _render(self, parent, datum, patches, nsmap):
def render(self, parent, obj, patches=[], nsmap=None):
def will_render(self, datum):
def _text_get(self):
def _text_set(self, value):
def _text_del(self):
def tree(self):
def SubTemplateElement(parent, tag, attrib=None, selector=None, subselector=None, colon_ns=False, **extra):
class Template(object):
def __init__(self, root, nsmap=None):
def _serialize(self, parent, obj, siblings, nsmap=None):
def serialize(self, obj, *args, **kwargs):
def make_tree(self, obj):
def _siblings(self):
def _nsmap(self):
def unwrap(self):
def wrap(self):
def apply(self, master):
def tree(self):
class MasterTemplate(Template):
def __init__(self, root, version, nsmap=None):
def __repr__(self):
def _siblings(self):
def _nsmap(self):
def attach(self, *slaves):
def copy(self):
class SlaveTemplate(Template):
def __init__(self, root, min_vers, max_vers=None, nsmap=None):
def __repr__(self):
def apply(self, master):
class TemplateBuilder(object):
def __new__(cls, copy=True):
def construct(self):
def make_links(parent, selector=None):
def make_flat_dict(name, selector=None, subselector=None, ns=None, colon_ns=False, root=None, ignore_sub_dicts=False):
class ProtectedExpatParser(expatreader.ExpatParser):
def __init__(self, forbid_dtd=True, forbid_entities=True, *args, **kwargs):
def start_doctype_decl(self, name, sysid, pubid, has_internal_subset):
def entity_decl(self, entityName, is_parameter_entity, value, base, systemId, publicId, notationName):
def unparsed_entity_decl(self, name, base, sysid, pubid, notation_name):
def external_entity_ref(self, context, base, systemId, publicId):
def notation_decl(self, name, base, sysid, pubid):
def reset(self):
def safe_minidom_parse_string(xml_string):
\OpenStack\nova-2014.1\nova\api\openstack\__init__.py
class FaultWrapper(base_wsgi.Middleware):
def status_to_type(status):
def _error(self, inner, req):
def __call__(self, req):
class APIMapper(routes.Mapper):
def routematch(self, url=None, environ=None):
def connect(self, *args, **kargs):
class ProjectMapper(APIMapper):
def resource(self, member_name, collection_name, **kwargs):
class PlainMapper(APIMapper):
def resource(self, member_name, collection_name, **kwargs):
class APIRouter(base_wsgi.Router):
def factory(cls, global_config, **local_config):
def __init__(self, ext_mgr=None, init_only=None):
def _setup_ext_routes(self, mapper, ext_mgr, init_only):
def _setup_extensions(self, ext_mgr):
def _setup_routes(self, mapper, ext_mgr, init_only):
class APIRouterV3(base_wsgi.Router):
def factory(cls, global_config, **local_config):
def __init__(self, init_only=None):
def _check_load_extension(ext):
def get_missing_core_extensions(extensions_loaded):
def loaded_extension_info(self):
def _register_extension(self, ext):
def _register_resources(self, ext, mapper):
def _register_controllers(self, ext):
\OpenStack\nova-2014.1\nova\api\sizelimit.py
class LimitingReader(object):
def __init__(self, data, limit):
def __iter__(self):
def read(self, i=None):
class RequestBodySizeLimiter(wsgi.Middleware):
def __init__(self, *args, **kwargs):
def __call__(self, req):
\OpenStack\nova-2014.1\nova\api\validation\parameter_types.py
\OpenStack\nova-2014.1\nova\api\validation\validators.py
def _validate_uuid_format(instance):
class _SchemaValidator(object):
def __init__(self, schema):
def validate(self, *args, **kwargs):
def _number_from_str(self, instance):
def _validate_minimum(self, validator, minimum, instance, schema):
def _validate_maximum(self, validator, maximum, instance, schema):
\OpenStack\nova-2014.1\nova\api\validation\__init__.py
def schema(request_body_schema):
\OpenStack\nova-2014.1\nova\api\validator.py
def _get_path_validator_regex():
def validate_str(max_length=None):
def validate_int(max_value=None):
def validate_url_path(val):
def validate_image_path(val):
def validate_user_data(user_data):
def validate(args, validator):
\OpenStack\nova-2014.1\nova\api\__init__.py
\OpenStack\nova-2014.1\nova\availability_zones.py
def _get_cache():
def reset_cache():
def _make_cache_key(host):
def set_availability_zones(context, services):
def get_host_availability_zone(context, host, conductor_api=None):
def update_host_availability_zone_cache(context, host, availability_zone=None):
def get_availability_zones(context, get_only_available=False):
def get_instance_availability_zone(context, instance):
\OpenStack\nova-2014.1\nova\baserpc.py
class BaseAPI(object):
def __init__(self, topic):
def ping(self, context, arg, timeout=None):
def get_backdoor_port(self, context, host):
class BaseRPCAPI(object):
def __init__(self, service_name, backdoor_port):
def ping(self, context, arg):
def get_backdoor_port(self, context):
\OpenStack\nova-2014.1\nova\block_device.py
class BlockDeviceDict(dict):
def __init__(self, bdm_dict=None, do_not_default=None):
def _validate(self, bdm_dict):
def from_legacy(cls, legacy_bdm):
def from_api(cls, api_dict):
def legacy(self):
def get_image_mapping(self):
def is_safe_for_update(block_device_dict):
def create_image_bdm(image_ref, boot_index=0):
def snapshot_from_bdm(snapshot_id, template):
def legacy_mapping(block_device_mapping):
def from_legacy_mapping(legacy_block_device_mapping, image_uuid='', root_device_name=None, no_root=False):
def properties_root_device_name(properties):
OpenStack IndexPreviousNext
|