# Copyright 2014 Google Inc. All Rights Reserved.
"""Command for deleting snapshots."""
from googlecloudsdk.compute.lib import base_classes


class Delete(base_classes.GlobalDeleter):
  """Delete Google Compute Engine snapshots."""

  @staticmethod
  def Args(parser):
    cli = Delete.GetCLIGenerator()
    base_classes.GlobalDeleter.Args(parser, 'compute.snapshots', cli)

  @property
  def service(self):
    return self.compute.snapshots

  @property
  def resource_type(self):
    return 'snapshots'


Delete.detailed_help = {
    'brief': 'Delete Google Compute Engine snapshots',
    'DESCRIPTION': """\
        *{command}* deletes one or more Google Compute Engine
         snapshots.
        """,
}
