Coverage for nova/objects/__init__.py: 100%
47 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-24 11:16 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-04-24 11:16 +0000
1# Copyright 2013 IBM Corp.
2#
3# Licensed under the Apache License, Version 2.0 (the "License"); you may
4# not use this file except in compliance with the License. You may obtain
5# a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12# License for the specific language governing permissions and limitations
13# under the License.
15# NOTE(comstud): You may scratch your head as you see code that imports
16# this module and then accesses attributes for objects such as Instance,
17# etc, yet you do not see these attributes in here. Never fear, there is
18# a little bit of magic. When objects are registered, an attribute is set
19# on this module automatically, pointing to the newest/latest version of
20# the object.
23def register_all():
24 # NOTE(danms): You must make sure your object gets imported in this
25 # function in order for it to be registered by services that may
26 # need to receive it via RPC.
27 __import__('nova.objects.aggregate')
28 __import__('nova.objects.block_device')
29 __import__('nova.objects.build_request')
30 __import__('nova.objects.cell_mapping')
31 __import__('nova.objects.compute_node')
32 __import__('nova.objects.diagnostics')
33 __import__('nova.objects.console_auth_token')
34 __import__('nova.objects.ec2')
35 __import__('nova.objects.external_event')
36 __import__('nova.objects.flavor')
37 __import__('nova.objects.host_mapping')
38 __import__('nova.objects.hv_spec')
39 __import__('nova.objects.image_meta')
40 __import__('nova.objects.instance')
41 __import__('nova.objects.instance_action')
42 __import__('nova.objects.instance_fault')
43 __import__('nova.objects.instance_group')
44 __import__('nova.objects.instance_info_cache')
45 __import__('nova.objects.instance_mapping')
46 __import__('nova.objects.instance_numa')
47 __import__('nova.objects.instance_pci_requests')
48 __import__('nova.objects.keypair')
49 __import__('nova.objects.migrate_data')
50 __import__('nova.objects.virt_device_metadata')
51 __import__('nova.objects.migration')
52 __import__('nova.objects.migration_context')
53 __import__('nova.objects.monitor_metric')
54 __import__('nova.objects.network_metadata')
55 __import__('nova.objects.network_request')
56 __import__('nova.objects.numa')
57 __import__('nova.objects.pci_device')
58 __import__('nova.objects.pci_device_pool')
59 __import__('nova.objects.request_spec')
60 __import__('nova.objects.tag')
61 __import__('nova.objects.quotas')
62 __import__('nova.objects.resource')
63 __import__('nova.objects.security_group')
64 __import__('nova.objects.selection')
65 __import__('nova.objects.service')
66 __import__('nova.objects.task_log')
67 __import__('nova.objects.trusted_certs')
68 __import__('nova.objects.vcpu_model')
69 __import__('nova.objects.virt_cpu_topology')
70 __import__('nova.objects.virtual_interface')
71 __import__('nova.objects.volume_usage')
72 __import__('nova.objects.share_mapping')