    # File lib/fog/aws/requests/beanstalk/update_environment.rb, line 27
            def update_environment(options={})
              if option_settings = options.delete('OptionSettings')
                options.merge!(AWS.indexed_param('OptionSettings.member.%d', [*option_settings]))
              end
              if options_to_remove = options.delete('OptionsToRemove')
                options.merge!(AWS.indexed_param('OptionsToRemove.member.%d', [*options_to_remove]))
              end
              request({
                          'Operation'    => 'UpdateEnvironment',
                          :parser     => Fog::Parsers::AWS::ElasticBeanstalk::UpdateEnvironment.new
                      }.merge(options))
            end