@utils.arg('snapshot', metavar='<snapshot>', help='ID of the snapshot.')
@utils.arg('display_name', nargs='?', metavar='<display-name>', help='New display-name for the snapshot.')
@utils.arg('--display-description', metavar='<display-description>', help='Optional snapshot description. (Default=None)', default=None)
@utils.service_type('monitor')
def do_snapshot_rename(cs, args):
 kwargs = {}
 if (args.display_name is not None):
  kwargs['display_name'] = args.display_name
 if (args.display_description is not None):
  kwargs['display_description'] = args.display_description
 _find_monitor_snapshot(cs, args.snapshot).update(**kwargs)

@ utils . arg ( 'snapshot' , metavar = '<snapshot>' , help = 'ID of the snapshot.' ) @ utils . arg ( 'display_name' , nargs = '?' , metavar = '<display-name>' , help = 'New display-name for the snapshot.' ) @ utils . arg ( '--display-description' , metavar = '<display-description>' , help = 'Optional snapshot description. (Default=None)' , default = None ) @ utils . service_type ( 'monitor' ) def do_snapshot_rename ( cs , args ) : kwargs = { } if ( args . display_name is not None ) : kwargs [ 'display_name' ] = args . display_name if ( args . display_description is not None ) : kwargs [ 'display_description' ] = args . display_description _find_monitor_snapshot ( cs , args . snapshot ) . update ( ** kwargs )
rename a snapshot .