# File lib/fog/rackspace/models/auto_scale/policy.rb, line 102
        def create
          requires :name, :type, :cooldown

          check_attributes

          options = {}
          options['name'] = name unless name.nil?
          options['change'] = change unless change.nil?
          options['changePercent'] = change_percent unless change_percent.nil?
          options['cooldown'] = cooldown unless cooldown.nil?
          options['type'] = type unless type.nil?
          options['desiredCapacity'] = desired_capacity unless desired_capacity.nil?

          if type == 'schedule'
            options['args'] = args
          end

          data = service.create_policy(group.id, options)
          merge_attributes(data.body['policies'][0])
          true
        end