Lines Matching refs:instance
385 def GetInstance(self, instance, zone): argument
398 instance=instance)
401 def StartInstance(self, instance, zone): argument
413 instance=instance)
420 logger.error("Start instance failed: %s", instance)
422 logger.info("Instance %s has been started.", instance)
444 def StopInstance(self, instance, zone): argument
456 instance=instance)
463 logger.error("Stop instance failed: %s", instance)
465 logger.info("Instance %s has been terminated.", instance)
488 instance, argument
515 instance=instance,
523 logger.error("Set instance scheduling failed: %s", instance)
611 requests[instance_name] = action(instance=instance_name)
735 instance, argument
754 disk_args = (disk_args or self._GetDiskArgs(instance, image_name))
757 "name": instance,
780 logger.info("Instance %s has been created.", instance)
782 def DeleteInstance(self, instance, zone): argument
789 logger.info("Deleting instance: %s", instance)
792 instance=instance)
797 logger.info("Deleted instance: %s", instance)
817 def ResetInstance(self, instance, zone): argument
824 logger.info("Resetting instance: %s", instance)
827 instance=instance)
832 logger.info("Instance has been reset: %s", instance)
896 def GetSerialPortOutput(self, instance, zone, port=1): argument
913 instance=instance,
937 for instance in self.ListInstances(zone):
939 ip = instance["networkInterfaces"][0]["accessConfigs"][0][
942 ip_name_map[ip] = instance["name"]
947 def GetInstanceIP(self, instance, zone): argument
960 instance = self.GetInstance(instance, zone)
961 return instance["networkInterfaces"][0]["accessConfigs"][0]["natIP"]