@@ -126,7 +126,7 @@ def create_one_extension(attrs=None):
126126 """Create a fake extension.
127127
128128 :param dict attrs: A dictionary with all attributes
129- :return: A fake openstack.compute.v2.extension.Extension object
129+ :return: A fake :class:`~ openstack.compute.v2.extension.Extension` object
130130 """
131131 attrs = attrs or {}
132132
@@ -240,11 +240,11 @@ def create_security_group_rules(attrs=None, count=2):
240240 return security_group_rules
241241
242242
243- def create_one_sdk_server (attrs = None ):
244- """Create a fake server for testing migration to sdk
243+ def create_one_server (attrs = None ):
244+ """Create a fake server
245245
246246 :param dict attrs: A dictionary with all attributes
247- :return: A fake openstack.compute.v2.server.Server object,
247+ :return: A fake :class:`~ openstack.compute.v2.server.Server` object,
248248 """
249249 attrs = attrs or {}
250250
@@ -272,16 +272,16 @@ def create_one_sdk_server(attrs=None):
272272 return server
273273
274274
275- def create_sdk_servers (attrs = None , count = 2 ):
276- """Create multiple fake servers for testing migration to sdk
275+ def create_servers (attrs = None , count = 2 ):
276+ """Create multiple fake servers
277277
278278 :param dict attrs: A dictionary with all attributes
279279 :param int count: The number of servers to fake
280- :return: A list of fake openstack.compute.v2.server.Server objects
280+ :return: A list of fake :class:` openstack.compute.v2.server.Server` objects
281281 """
282282 servers = []
283283 for i in range (0 , count ):
284- servers .append (create_one_sdk_server (attrs ))
284+ servers .append (create_one_server (attrs ))
285285
286286 return servers
287287
@@ -290,7 +290,8 @@ def create_one_server_action(attrs=None):
290290 """Create a fake server action.
291291
292292 :param attrs: A dictionary with all attributes
293- :return: A fake openstack.compute.v2.server_action.ServerAction object
293+ :return: A fake :class:`~openstack.compute.v2.server_action.ServerAction`
294+ object
294295 """
295296 attrs = attrs or {}
296297
@@ -333,7 +334,7 @@ def create_one_flavor(attrs=None):
333334 """Create a fake flavor.
334335
335336 :param dict attrs: A dictionary with all attributes
336- :return: A fake openstack.compute.v2.flavor.Flavor object
337+ :return: A fake :class:`~ openstack.compute.v2.flavor.Flavor` object
337338 """
338339 attrs = attrs or {}
339340
@@ -366,7 +367,7 @@ def create_flavors(attrs=None, count=2):
366367
367368 :param dict attrs: A dictionary with all attributes
368369 :param int count: The number of flavors to fake
369- :return: A list of fake openstack.compute.v2.flavor.Flavor objects
370+ :return: A list of fake :class:` openstack.compute.v2.flavor.Flavor` objects
370371 """
371372 flavors = []
372373 for i in range (0 , count ):
@@ -405,8 +406,8 @@ def create_one_availability_zone(attrs=None):
405406 """Create a fake AZ.
406407
407408 :param dict attrs: A dictionary with all attributes
408- :return: A fake openstack.compute.v2.availability_zone.AvailabilityZone
409- object
409+ :return: A fake
410+ :class:`~openstack.compute.v2.availability_zone.AvailabilityZone` object
410411 """
411412 attrs = attrs or {}
412413
@@ -684,7 +685,7 @@ def create_one_migration(attrs=None):
684685 """Create a fake migration.
685686
686687 :param dict attrs: A dictionary with all attributes
687- :return: A fake openstack.compute.v2.migration.Migration object
688+ :return: A fake :class:`~ openstack.compute.v2.migration.Migration` object
688689 """
689690 attrs = attrs or {}
690691
@@ -720,7 +721,7 @@ def create_migrations(attrs=None, count=2):
720721
721722 :param dict attrs: A dictionary with all attributes
722723 :param int count: The number of migrations to fake
723- :return: A list of fake openstack.compute.v2.migration.Migration objects
724+ :return: A list of fake :class:` openstack.compute.v2.migration.Migration` objects
724725 """
725726 migrations = []
726727 for i in range (0 , count ):
@@ -733,7 +734,8 @@ def create_one_server_migration(attrs=None):
733734 """Create a fake server migration.
734735
735736 :param dict attrs: A dictionary with all attributes
736- :return A fake openstack.compute.v2.server_migration.ServerMigration object
737+ :return: A fake
738+ :class:`~openstack.compute.v2.server_migration.ServerMigration` object
737739 """
738740 attrs = attrs or {}
739741
@@ -789,8 +791,8 @@ def create_one_volume_attachment(attrs=None):
789791 """Create a fake volume attachment.
790792
791793 :param dict attrs: A dictionary with all attributes
792- :return: A fake openstack.compute.v2.volume_attachment.VolumeAttachment
793- object
794+ :return: A fake
795+ :class:`~openstack.compute.v2.volume_attachment.VolumeAttachment` object
794796 """
795797 attrs = attrs or {}
796798
@@ -831,12 +833,12 @@ def create_volume_attachments(attrs=None, count=2):
831833
832834
833835def create_one_server_interface (attrs = None ):
834- """Create a fake SDK ServerInterface.
836+ """Create a fake ServerInterface.
835837
836838 :param dict attrs: A dictionary with all attributes
837839 :param dict methods: A dictionary with all methods
838- :return: A fake openstack.compute.v2.server_interface.ServerInterface
839- object
840+ :return: A fake
841+ :class:`~openstack.compute.v2.server_interface.ServerInterface` object
840842 """
841843 attrs = attrs or {}
842844
0 commit comments