old_contents: # Copyright (c) 2016 Jiocloud.com, Inc. or its affiliates.  All Rights Reserved
  #
  # Permission is hereby granted, free of charge, to any person obtaining a
  # copy of this software and associated documentation files (the
  # "Software"), to deal in the Software without restriction, including
  # without limitation the rights to use, copy, modify, merge, publish, dis-
  # tribute, sublicense, and/or sell copies of the Software, and to permit
  # persons to whom the Software is furnished to do so, subject to the fol-
  # lowing conditions:
  #
  # The above copyright notice and this permission notice shall be included
  # in all copies or substantial portions of the Software.
  #
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
  # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
  # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  # IN THE SOFTWARE.
  #
  
  import argparse
  from client import utils
  from client import requestify
  
  def create_key_pair(url, verb, headers, version, args):
      params = {}
      params['Action'] = utils.dash_to_camelcase(args[0])                    
      params['Version'] = version
      args = args[1:]
      parser = utils.get_argument_parser()
      parser.add_argument('--key-name', required=True)
      args = parser.parse_args(args)
      utils.populate_params_from_cli_args(params, args)
      return requestify.make_request(url, verb, headers, params) 
  
  def delete_key_pair(url, verb, headers, version, args):
      params = {}
      params['Action'] = utils.dash_to_camelcase(args[0])                    
      params['Version'] = version
      args = args[1:]
      parser = utils.get_argument_parser()
      parser.add_argument('--key-name', required=True)
      args= parser.parse_args(args)
      print args
      utils.populate_params_from_cli_args(params, args)
      print params
      return requestify.make_request(url, verb, headers, params) 
  
  def describe_key_pairs(url, verb, headers, version, args):
      params = {}
      params['Action'] = utils.dash_to_camelcase(args[0])                    
      params['Version'] = version
      args = args[1:]
      if len(args):
          msg = "Unexpected input received. Please check help for valid arguments."
          raise KeyError(msg)
      return requestify.make_request(url, verb, headers, params) 
  
new_contents: # Copyright (c) 2016 Jiocloud.com, Inc. or its affiliates.  All Rights Reserved
  #
  # Permission is hereby granted, free of charge, to any person obtaining a
  # copy of this software and associated documentation files (the
  # "Software"), to deal in the Software without restriction, including
  # without limitation the rights to use, copy, modify, merge, publish, dis-
  # tribute, sublicense, and/or sell copies of the Software, and to permit
  # persons to whom the Software is furnished to do so, subject to the fol-
  # lowing conditions:
  #
  # The above copyright notice and this permission notice shall be included
  # in all copies or substantial portions of the Software.
  #
  # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
  # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
  # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  # IN THE SOFTWARE.
  #
  
  import argparse
  from client import utils
  from client import requestify
  
  def create_key_pair(url, verb, headers, version, args):
      params = {}
      params['Action'] = utils.dash_to_camelcase(args[0])                    
      params['Version'] = version
      args = args[1:]
      parser = utils.get_argument_parser()
      parser.add_argument('--key-name', required=True)
      args = parser.parse_args(args)
      utils.populate_params_from_cli_args(params, args)
      return requestify.make_request(url, verb, headers, params) 
  
  def delete_key_pair(url, verb, headers, version, args):
      params = {}
      params['Action'] = utils.dash_to_camelcase(args[0])                    
      params['Version'] = version
      args = args[1:]
      parser = utils.get_argument_parser()
      parser.add_argument('--key-name', required=True)
      args= parser.parse_args(args)
      utils.populate_params_from_cli_args(params, args)
      return requestify.make_request(url, verb, headers, params) 
  
  def describe_key_pairs(url, verb, headers, version, args):
      params = {}
      params['Action'] = utils.dash_to_camelcase(args[0])                    
      params['Version'] = version
      args = args[1:]
      if len(args):
          msg = "Unexpected input received. Please check help for valid arguments."
          raise KeyError(msg)
      return requestify.make_request(url, verb, headers, params) 
  
subject: Update key_pair.py