# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing target instances.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.ZonalLister): """List target instances.""" @property def service(self): return self.compute.targetInstances @property def resource_type(self): return 'targetInstances' List.detailed_help = base_classes.GetZonalListerHelp('target instances')
# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing unmanaged instance groups.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.ZonalLister, base_classes.InstanceGroupDynamicProperiesMixin): """List Google Compute Engine unmanaged instance groups.""" def ComputeDynamicProperties(self, args, items): mode = base_classes.InstanceGroupFilteringMode.only_unmanaged_groups return self.ComputeInstanceGroupManagerMembership(items=items, filter_mode=mode) @property def service(self): return self.compute.instanceGroups @property def resource_type(self): return 'instanceGroups' List.detailed_help = base_classes.GetZonalListerHelp('unmanaged ' 'instance groups')
# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing networks.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.GlobalLister): """List Google Compute Engine networks.""" @property def service(self): return self.compute.networks @property def resource_type(self): return 'networks' List.detailed_help = base_classes.GetZonalListerHelp('networks')
# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing instance templates.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.GlobalLister): """List Google Compute Engine virtual machine instance templates.""" @property def service(self): return self.compute.instanceTemplates @property def resource_type(self): return 'instanceTemplates' List.detailed_help = base_classes.GetZonalListerHelp('instance tempates')
# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing machine types.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.ZonalLister): """List Google Compute Engine machine types.""" @property def service(self): return self.compute.machineTypes @property def resource_type(self): return 'machineTypes' List.detailed_help = base_classes.GetZonalListerHelp('machine types')
# Copyright 2014 Google Inc. All Rights Reserved. """Command for listing persistent disks.""" from googlecloudsdk.compute.lib import base_classes class List(base_classes.ZonalLister): """List Google Compute Engine persistent disks.""" @property def service(self): return self.compute.disks @property def resource_type(self): return 'disks' List.detailed_help = base_classes.GetZonalListerHelp('disks')