def CreateBudget(client):
 budget_service = client.GetService('BudgetService', version='v201609')
 budget = {'name': ('Interplanetary Cruise App Budget #%s' % uuid.uuid4()), 'amount': {'microAmount': '50000000'}, 'deliveryMethod': 'STANDARD', 'isExplicitlyShared': False}
 budget_operations = [{'operator': 'ADD', 'operand': budget}]
 budget_id = budget_service.mutate(budget_operations)['value'][0]['budgetId']
 return budget_id

def CreateBudget ( client ) : budget_service = client . GetService ( 'BudgetService' , version = 'v201609' ) budget = { 'name' : ( 'Interplanetary Cruise App Budget #%s' % uuid . uuid4 ( ) ) , 'amount' : { 'microAmount' : '50000000' } , 'deliveryMethod' : 'STANDARD' , 'isExplicitlyShared' : False } budget_operations = [ { 'operator' : 'ADD' , 'operand' : budget } ] budget_id = budget_service . mutate ( budget_operations ) [ 'value' ] [ 0 ] [ 'budgetId' ] return budget_id
creates a budget and returns its budgetid .