in gstack/controllers/machine_type.py [0:0]
def listmachinetype(projectid, authorization, zone):
args = {'command': 'listServiceOfferings'}
kwargs = {'projectid': projectid, 'zone': zone}
items = controllers.describe_items(
authorization, args, 'serviceoffering',
_cloudstack_service_offering_to_gce, **kwargs)
populated_response = {
'kind': 'compute#imageList',
'selfLink': urllib.unquote_plus(request.base_url),
'id': 'projects/' + projectid + '/global/images',
'items': items
}
return helpers.create_response(data=populated_response)