def update_pricing(kwargs=None, call=None):
 sources = {'linux': 'https://a0.awsstatic.com/pricing/1/ec2/linux-od.min.js', 'rhel': 'https://a0.awsstatic.com/pricing/1/ec2/rhel-od.min.js', 'sles': 'https://a0.awsstatic.com/pricing/1/ec2/sles-od.min.js', 'mswin': 'https://a0.awsstatic.com/pricing/1/ec2/mswin-od.min.js', 'mswinsql': 'https://a0.awsstatic.com/pricing/1/ec2/mswinSQL-od.min.js', 'mswinsqlweb': 'https://a0.awsstatic.com/pricing/1/ec2/mswinSQLWeb-od.min.js'}
 if (kwargs is None):
  kwargs = {}
 if ('type' not in kwargs):
  for source in sources:
   _parse_pricing(sources[source], source)
 else:
  _parse_pricing(sources[kwargs['type']], kwargs['type'])

def update_pricing ( kwargs = None , call = None ) : sources = { 'linux' : 'https://a0.awsstatic.com/pricing/1/ec2/linux-od.min.js' , 'rhel' : 'https://a0.awsstatic.com/pricing/1/ec2/rhel-od.min.js' , 'sles' : 'https://a0.awsstatic.com/pricing/1/ec2/sles-od.min.js' , 'mswin' : 'https://a0.awsstatic.com/pricing/1/ec2/mswin-od.min.js' , 'mswinsql' : 'https://a0.awsstatic.com/pricing/1/ec2/mswinSQL-od.min.js' , 'mswinsqlweb' : 'https://a0.awsstatic.com/pricing/1/ec2/mswinSQLWeb-od.min.js' } if ( kwargs is None ) : kwargs = { } if ( 'type' not in kwargs ) : for source in sources : _parse_pricing ( sources [ source ] , source ) else : _parse_pricing ( sources [ kwargs [ 'type' ] ] , kwargs [ 'type' ] )
download most recent pricing information from gce and save locally cli examples: .