#NEWLINE# def set_num_instances( self , server , version , instances ) : #NEWLINE# #INDENT# 'Sets the number of instances to run for a version of a server.\n\n    Args:\n      server: A str containing the name of the server.\n      version: A str containing the version.\n      instances: An int containing the number of instances to run.\n\n    Raises:\n      ServerDoesNotExistError: The server does not exist.\n      VersionDoesNotExistError: The version does not exist.\n      NotSupportedWithAutoScalingError: The provided server/version uses\n          automatic scaling.\n    ' #NEWLINE# if ( server not in self . _server_name_to_versions ) : #NEWLINE# #INDENT# raise ServerDoesNotExistError ( ) #NEWLINE# #UNINDENT# if ( version not in server . _server_name_to_versions [ server ] ) : #NEWLINE# #INDENT# raise VersionDoesNotExistError ( ) #NEWLINE# #UNINDENT# raise NotSupportedWithAutoScalingError ( )