Lines Matching full:gce
9 from autotest_lib.utils.frozen_chromite.lib import gce
20 """Extract GCE-specific arguments from arguments dictionary.
31 """GCE-specific subclass of Host."""
38 @param gce_args: GCE-specific arguments extracted using
50 logging.warning("No GCE flags provided, calls to GCE API will fail")
53 self.gce = gce.GceContext.ForServiceAccountThreadSafe(
59 Check if the given host is running on GCE.
64 @return: True if the host is running on GCE.
82 keys = self.gce.GetCommonInstanceMetadata(
87 self.gce.SetCommonInstanceMetadata(
92 """Adds a new SSH key in GCE metadata.
101 """Deletes the given SSH key from GCE metadata
147 self.gce.SetInstanceMetadata(self._gce_instance, key, value)
152 self.gce.StopInstance(self._gce_instance)
157 self.gce.StartInstance(self._gce_instance)