3 define_request :update_tenant, :inherit => [:openstack, :common, :v2, :admin, :base] do
5 meta :service, :identity
9 'http://docs.openstack.org/api/openstack-identity-service/2.0/content/POST_updateTenant_v2.0_tenants__tenantId__.html'
12 param :id, :required => true
13 param :name, :required => false
14 param :enabled, :required => false
15 param :description, :required => false
23 [:name, :enabled, :description].each do |key|
24 p[:tenant][key] = params[key] unless params[key].nil?
42 "#{ base_url }/tenants/#{ params[:id] }"